Use more suitable type for MSWReplaceImageHandle() parameter

It's a handle, so make it a WXHANDLE rather than WXLPARAM and avoid
casting the handle when calling it (there is still a cast when calling
::SendMessage() inside this function, but this is unavoidable and this
cast was already there anyhow).

No real changes.
This commit is contained in:
Vadim Zeitlin
2021-10-21 16:34:52 +01:00
parent c1abbe6473
commit e126ddc11c
2 changed files with 3 additions and 3 deletions

View File

@@ -132,7 +132,7 @@ private:
// Replace the image at the native control level with the given HBITMAP or
// HICON (which can be 0) and destroy the previous image if necessary.
void MSWReplaceImageHandle(WXLPARAM handle);
void MSWReplaceImageHandle(WXHANDLE handle);
wxDECLARE_DYNAMIC_CLASS(wxStaticBitmap);