Posted February 16, 200817 yr BCM_SETIMAGELISTBeen trying to use this in masm but i have failed miserably.Has anyone played with this before ?It is used to pin images on top of xp style buttons and it also retains the xp style.I tried setting the imagelist to the button , but it fails. Instead a get a blank button. i wonder why it fails.This is from SDK:-----------------------------------BCM_SETIMAGELISTThe 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);ParameterswParamNot used; must be zero.lParamPointer to a BUTTON_IMAGELIST structure that contains image list information.Return ValuesIf the message succeeds, it returns TRUE. Otherwise it returns FALSE.RequirementsWindows NT/2000/XP: Included in Windows XP and Windows .NET Server.Windows 95/98/Me: Unsupported.Header: Declared in Commctrl.h.Thanx
February 16, 200817 yr I once managed to get it done in C but the finished code just made me puke and I deleted it again :x Just found a MASM example in my junk code folder ImageButton.zip
February 17, 200817 yr Sorry, some required files are missing, if you intended to view a topic, it's possible that it's been moved or deleted. Please go back and try again.wht wrong! anyone can reupload it!
February 17, 200817 yr Here's the original download page at ASMsoft. http://www.geocities.com/asmsoft3264/src.html
Create an account or sign in to comment