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

相关文章:

  • 2021-10-15
  • 2022-01-24
  • 2022-02-16
  • 2022-01-10
  • 2022-01-02
  • 2021-10-02
  • 2021-04-27
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-06
  • 2022-02-24
  • 2021-11-12
  • 2022-01-06
  • 2021-08-31
相关资源
相似解决方案