Hi all,
I want to use BCM_SETIMAGELIST to assign a BITMAP to a button control.
That works in XP and also keeps the XP Style for the button, but I dont't know if that will work on Win2000.
Does anybody know if that works on Win2000?
This is from SDK:
-----------------------------------
BCM_SETIMAGELIST
The BCM_SETIMAGELIST message assigns an image list to a button control.
To send this message, call SendMessage with the following parameters.
LRESULT SendMessage(
(HWND) hWndControl, // handle to destination control
(UINT) BCM_SETIMAGELIST,
(WPARAM) wParam, // not used; must be zero
(LPARAM) lParam // (LPARAM) (PBUTTON_IMAGELIST) pbuttonImageList
);
Parameters
wParam
Not used; must be zero.
lParam
Pointer to a BUTTON_IMAGELIST structure that contains image list information.
Return Values
If the message succeeds, it returns TRUE. Otherwise it returns FALSE.
Requirements
Windows NT/2000/XP: Included in Windows XP and Windows .NET Server.
Windows 95/98/Me: Unsupported.
Header: Declared in Commctrl.h.
---------------------------------------------------------------
Thanks.
GM