0 out of 1 rated this helpful - Rate this topic

Button_SetImageList macro

Assigns an image list to a button control. You can use this macro or send the BCM_SETIMAGELIST message explicitly.

Syntax


BOOL Button_SetImageList(
  HWND hwnd,
  PBUTTON_IMAGELIST pbuttonImageList
);

Parameters

hwnd

Type: HWND

A handle to the button control.

pbuttonImageList

Type: PBUTTON_IMAGELIST

A pointer to a BUTTON_IMAGELIST structure that contains the image list information to set.

Return value

If the macro succeeds, it returns TRUE. Otherwise it returns FALSE.

Remarks

Note  To use this macro, you must provide a manifest specifying Comclt32.dll version 6.0. For more information on manifests, see Enabling Visual Styles.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Commctrl.h

 

 

Send comments about this topic to Microsoft

Build date: 10/27/2012

Community Additions

ADD
© 2013 Microsoft. All rights reserved.