starzboy Posted February 16, 2008 Posted February 16, 2008 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
Killboy Posted February 16, 2008 Posted February 16, 2008 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
dR.cARBOn Posted February 17, 2008 Posted February 17, 2008 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!
HVC Posted February 17, 2008 Posted February 17, 2008 Here's the original download page at ASMsoft. http://www.geocities.com/asmsoft3264/src.html
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now