Jump to content
Tuts 4 You

Bcm_setimagelist


starzboy

Recommended Posts

Posted

BCM_SETIMAGELIST

Been 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_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.

Thanx

Posted

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

Posted

Thanx , exactly what i needed.

Posted
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!

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...