InitCommonControls 函式 (commctrl.h)
註冊並初始化特定通用控制項窗口類別。 此函式已經過時。 新的應用程式應該使用 InitCommonControlsEx 函式。
語法
void InitCommonControls();
傳回值
沒有
言論
在 Comctl32.dll 5.x 版下,只有 Windows 95 類別(ICC_WIN95_CLASSES)可以透過 initCommonControls 註冊。 需要其他通用控件類別的程式必須使用 InitCommonControlsEx 函式。
在 Comctl32.dll 6.0 版和更新版本下,InitCommonControls 不會執行任何動作。 應用程式必須透過 InitCommonControlsEx明確註冊所有通用控件。
要求
要求 | 價值 |
---|---|
最低支援的用戶端 | Windows Vista [僅限傳統型應用程式] |
支援的最低伺服器 | Windows Server 2003 [僅限傳統型應用程式] |
目標平臺 | 窗戶 |
標頭 | commctrl.h |
連結庫 | Comctl32.lib |
DLL | Comctl32.dll |
API 集 | ext-ms-win-shell-comctl32-init-l1-1-0 (在 Windows 10 版本 10.0.10240 中引進) |