zoukankan      html  css  js  c++  java
  • 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.

    靓点博客 http://www.cnblogs.com/mlog 或 http://blog.csdn.net/cml2030
  • 相关阅读:
    双谷人才财务管理(3)
    远程服务器上个人目录下python路径设置
    ubnutu16安装谷歌浏览器
    一个数组除了一个元素只出现一次,其他元素全都出现了三次,输出出现一次的元素
    一个整型数组里除了一个数字之外,其它的数字都出现了两次。请写程序找出这个只出现一次的数字。要求时间复杂度是O(n),空间复杂度是O(1)。
    滑动窗口的最大值
    360
    拼多多2018/8/5算法工程师笔试
    最小的K个数 C++(BFPRT,堆排序)
    CCF201312-3 最大的矩形(100分)
  • 原文地址:https://www.cnblogs.com/mlog/p/2456365.html
Copyright © 2011-2022 走看看