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 registers specific common controls classes from the common control dynamic-link library (DLL).

Syntax

BOOL InitCommonControlsEx(
  LPINITCOMMONCONTROLSEX 
lpInitCtrls 
);

Parameters

lpInitCtrls

[in] Long pointer to INITCOMMONCONTROLSEX (structure)that contains information specifying which control classes are registered.

Return Value

TRUE indicates success. FALSE indicates failure.

Remarks

The effect of each call to InitCommonControlsExis cumulative. For example, if InitCommonControlsExis called with the ICC_UPDOWN_CLASS flag, then is later called with the ICC_HOTKEY_CLASS flag, the result is that both the up-down and hot key common control classes are registered and available to the application.

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