Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This function instantiates a new command bands control.

Syntax

HWND CommandBands_Create(
  HINSTANCE 
hinst, 
  HWND 
hwndParent, 
  UINT 
wID, 
  DWORD 
dwStyles, 
  HIMAGELIST 
himl 
);

Parameters

hinst

Handle to the application instance in which to create the command bands control.

hwndParent

Handle to the parent window for the command bands control.

wID

Identifier of the command bands control. This is used in any rebar notifications that are sent to the parent window.

dwStyles

Specifies the style of the command bands tool being created. This parameter can be any combination of the styles listed in Window and Message Box Stylesand Control Styles.

himl

Handle to the image list that contains the images to draw in each band of the control. Set this parameter to NULL if no images are to be drawn.

Return Value

The window handle to the command bands control indicates success. NULL indicates failure.

Requirements

Header commctrl.h
Library commctrl.lib
Windows Embedded CE Windows CE 2.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also