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: e...@csp.at Web: http://www.csp.at --------------------------------------------------------------------- To unsubscribe, e-mail: nanogui-unsubscr...@linuxhacker.org For additional commands, e-mail: nanogui-h...@linuxhacker.org