TB_SETIMAGELIST

This message sets the image list that the toolbar will use to display buttons that are in their default state.

At a Glance

Header file: Commctrl.h
Windows CE versions: 2.0 and later

Syntax

  1. TB_SETIMAGELIST wParam = 0;
    lParam = (LPARAM)(HIMAGELIST) himlNew;

Parameters

himlNew

Handle to the image list that will be set. If this parameter is NULL, no images are displayed in the buttons.

Return Values

Returns the handle to the image list previously used to display buttons in their default state, or NULL if no image list was previously set.

Remarks

A toolbar control uses himlNew to display buttons in their default state; that is, when they are not hot or disabled.