Skip to main content
InitCommonControlsEx function

Applies to: desktop apps only

Ensures that the common control DLL (Comctl32.dll) is loaded, and registers specific common control classes from the DLL. An application must call this function before creating a common control.

Syntax

BOOL InitCommonControlsEx(
  __in  const LPINITCOMMONCONTROLSEX lpInitCtrls
);

Parameters

lpInitCtrls [in]

Type: const LPINITCOMMONCONTROLSEX

A pointer to an INITCOMMONCONTROLSEX structure that contains information specifying which control classes will be registered.

Return value

Type: BOOL

Returns TRUE if successful, or FALSE otherwise.

Remarks

The effect of each call to InitCommonControlsEx is cumulative. For example, if InitCommonControlsEx is 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

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Commctrl.h

Library

Comctl32.lib

DLL

Comctl32.dll (version 4.70 or later)

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Anzeige
Microsoft führt eine Onlineumfrage durch, um Ihre Meinung zur -Website zu erfahren. Wenn Sie sich zur Teilnahme entscheiden, wird Ihnen die Onlineumfrage angezeigt, sobald Sie die -Website verlassen.

Möchten Sie teilnehmen?