nanogui: BM_SETIMAGE in button.c
Subject:
BM_SETIMAGE in button.c
From:
"Ludwig Ertl" ####@####.####
Date:
26 Apr 2010 15:50:29 -0000
Message-Id: <030d01cae558$ef0119f0$c7d2a8c0@ERT>
Hi,
I know that the BM_SETIMAGE API and Bitmap drawing is just experimantal and
isn't really compatible to LoadImage WIN32-APIs.
But in button.c I found the following:
case BM_SETIMAGE:
hwnd->userdata = (DWORD)wParam;
InvalidateRect(hwnd, NULL, FALSE);
return 0;
I think you should use lParam instead, which would resemble the BM_SETIMAGE
API more closely:
----------------------------------------------------------------------------
--------------
BM_SETIMAGE
wParam = (WPARAM) fImageType; // image-type flag
lParam = (LPARAM) (HANDLE) hImage; // handle to the image
Parameters
fImageType
Value of wParam. Specifies the type of image to associate with the button.
This parameter can be one of the following values:
IMAGE_BITMAP
IMAGE_ICON
hImage
Value of lParam. Handle to the image to associate with the button.
----------------------------------------------------------------------------
--------------
Regards,
DI (FH) Ludwig Ertl
Software Engineering
Computer Software Production GmbH
Fockygasse 4
1120 Wien
E-Mail: ####@####.####
Web: http://www.csp.at