InitCommonControls 函式 (commctrl.h)

註冊並初始化特定常見的控制項視窗類別。 此函式已過時。 新的應用程式應該使用 InitCommonControlsEx 函式。

Syntax

void InitCommonControls();

傳回值

備註

在 Comctl32.dll 5.x 版底下,只能透過 InitCommonControls註冊 windows 95 類別 (ICC_WIN95_CLASSES) 。 需要其他通用控制項類別的程式必須使用 InitCommonControlsEx 函式。

在 Comctl32.dll 6.0 版和更新版本下, InitCommonControls 不會執行任何動作。 應用程式必須透過 InitCommonControlsEx明確註冊所有通用控制項。

規格需求

   
最低支援的用戶端 Windows Vista [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2003 [僅限傳統型應用程式]
目標平台 Windows
標頭 commctrl.h
程式庫 Comctl32.lib
Dll Comctl32.dll
API 集合 ext-ms-win-shell-comctl32-init-l1-1-0 (于 Windows 10 10.0.10240 版)