Windows SDK中的标准控件和通用控件
2010-12-23 09:13
155 查看
Windows标准控件,标准控件总是可用的。控件包括:静态控件、按钮控件、编辑框控件、列表框控件、组合框控件,滚动条等如表所示。
Windows标准控件的类型
Static
Group Box
Button
Check Box
Radio Button
Edit
ComboBox
ListBox
Windows通用控件,可执行代码都在Comctrl32.dll中实现,相关的C++原型声明在commctrl.h
列表如下:
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
Rich-Edit控件是标准控件,不是通用控件,但可执行代码在 Richedxx.dll中分三个版本发布
在使用通用控件时,要确保该库已经载入,所以得在使用通用控件之前先添加一下语句:
INITCOMMONCONTROLSEX icex;
icex.dwSize = sizeof(INITCOMMONCONTROLSEX);
icex.dwICC = ICC_WIN95_CLASSES;
InitCommonControlsEx(&icex);
The set of bit flags that indicate which common control classes will be loaded from the DLL. This can be a combination of the following values.
ICC_ANIMATE_CLASS
Load animate control class.
ICC_BAR_CLASSES
Load toolbar, status bar, trackbar, and ToolTip control classes.
ICC_COOL_CLASSES
Load rebar control class.
ICC_DATE_CLASSES
Load date and time picker control class.
ICC_HOTKEY_CLASS
Load hot key control class.
ICC_INTERNET_CLASSES
Load IP address class.
ICC_LINK_CLASS
Load a hyperlink control class.
ICC_LISTVIEW_CLASSES
Load list-view and header control classes.
ICC_NATIVEFNTCTL_CLASS
Load a native font control class.
ICC_PAGESCROLLER_CLASS
Load pager control class.
ICC_PROGRESS_CLASS
Load progress bar control class.
ICC_STANDARD_CLASSES
Load one of the intrinsic User32 control classes. The user controls include button, edit, static, listbox, combobox, and scrollbar.
ICC_TAB_CLASSES
Load tab and ToolTip control classes.
ICC_TREEVIEW_CLASSES
Load tree-view and ToolTip control classes.
ICC_UPDOWN_CLASS
Load up-down control class.
ICC_USEREX_CLASSES
Load ComboBoxEx class.
ICC_WIN95_CLASSES
Load animate control, header, hot key, list-view, progress bar, status bar, tab, ToolTip, toolbar, trackbar, tree-view, and up-down control classes.
Windows标准控件的类型
Static
Group Box
Button
Check Box
Radio Button
Edit
ComboBox
ListBox
Windows通用控件,可执行代码都在Comctrl32.dll中实现,相关的C++原型声明在commctrl.h
列表如下:
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
Rich-Edit控件是标准控件,不是通用控件,但可执行代码在 Richedxx.dll中分三个版本发布
在使用通用控件时,要确保该库已经载入,所以得在使用通用控件之前先添加一下语句:
INITCOMMONCONTROLSEX icex;
icex.dwSize = sizeof(INITCOMMONCONTROLSEX);
icex.dwICC = ICC_WIN95_CLASSES;
InitCommonControlsEx(&icex);
The set of bit flags that indicate which common control classes will be loaded from the DLL. This can be a combination of the following values.
ICC_ANIMATE_CLASS
Load animate control class.
ICC_BAR_CLASSES
Load toolbar, status bar, trackbar, and ToolTip control classes.
ICC_COOL_CLASSES
Load rebar control class.
ICC_DATE_CLASSES
Load date and time picker control class.
ICC_HOTKEY_CLASS
Load hot key control class.
ICC_INTERNET_CLASSES
Load IP address class.
ICC_LINK_CLASS
Load a hyperlink control class.
ICC_LISTVIEW_CLASSES
Load list-view and header control classes.
ICC_NATIVEFNTCTL_CLASS
Load a native font control class.
ICC_PAGESCROLLER_CLASS
Load pager control class.
ICC_PROGRESS_CLASS
Load progress bar control class.
ICC_STANDARD_CLASSES
Load one of the intrinsic User32 control classes. The user controls include button, edit, static, listbox, combobox, and scrollbar.
ICC_TAB_CLASSES
Load tab and ToolTip control classes.
ICC_TREEVIEW_CLASSES
Load tree-view and ToolTip control classes.
ICC_UPDOWN_CLASS
Load up-down control class.
ICC_USEREX_CLASSES
Load ComboBoxEx class.
ICC_WIN95_CLASSES
Load animate control, header, hot key, list-view, progress bar, status bar, tab, ToolTip, toolbar, trackbar, tree-view, and up-down control classes.
相关文章推荐
- Windows SDK中的标准控件和通用控件
- 【MFC入门】之五 标准控件在可视化编程中的应用之对话框通用控件
- 通用解决方案:解决NHibernate SELECT 多表查询结果List绑定控件显示问题。
- C# .NET treeView(树形控件)绑定数据的通用方法 (精)
- 通用权限实现标准52个接口参考
- VC通用控件编程之CImageList控件
- VC CListCtrl控件的上移和下移的通用方法
- 打造通用ASP.NET数据分页控件
- [iOS] iPad与iPhone上各种标准控件的大小
- Android下拉刷新上拉加载控件,对所有View通用!
- 自定义ListView【通用】适配器并实现监听控件!(转)
- 一个比较通用的分页控件,完整的设计时支持和比较流行的分页模式(提供源码下载)
- Qt之标准通用对话框的使用
- 通用分页控件(DataGrid,DataList,Repeater都可以用它来分页)
- Chapter 2. ASP.NET 标准控件(标签、文本框、按钮)
- Chapter 2. ASP.NET 标准控件(单选、复选、列表、面板、日历)
- DNN模块开发系列文章(6)——DNN中的通用控件(下)
- 【Android游戏开发二十三】自定义ListView【通用】适配器并实现监听控件!
- 在非UI线程中改变UI控件属性的通用方法
- 如何取得通用权限管理控件授权(下载C#通用权限管理源码)