Windows SDK中的标准控件和通用控件


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.

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值