Windows Common Controls
Win32 API中本身提供了Windows下许多常用的控件,称为Common Controls。 这些控件与Button、ComboBox等控件不同,不是在user32.dll中实现,而是在Comctrl32.dll中实现,相关的C++原型声明在commctrl.h中。
所以,在使用Win32 API编写Windows窗口应用程序时,如果在界面上用到了Common Controls,则必须在链接选项中包含comctrl32.lib库,并在程序初始化时调用InitCommonControls()函数,确保控件被加载。InitCommonControls()函数在commctrl.h中声明,因此程序中需包含该头文件。
Common Controls列表如下:
Animation
ComboBoxEx
Date_and_Time_Picker
Drag_List_Box
Flat_Scroll_Bar
Header
HotKey
ImageList
IPAddress
List_View
Month_Calendar
Pager
Progress_Bar
Property_Sheets
Rebar
Status Bars
SysLink
Tab
Toolbar
ToolTip
Trackbar
TreeView
Up_and_Down
本文介绍了Win32 API中的CommonControls组件,这些组件实现在Comctrl32.dll中,包括动画、日期选择器、进度条等多种UI元素。要在程序中使用它们,需要链接comctrl32.lib库并调用InitCommonControls()函数。
1万+

被折叠的 条评论
为什么被折叠?



