zoukankan      html  css  js  c++  java
  • Win32 SDK程序创建一些控件(简单调用InitCommonControlsEx,并指定ICC_LISTVIEW_CLASSES控件就可以了)

    在Win32 SDK中创建一些控件的时候需要注意一下(具体是哪些控件请参看MSDN文档中列出来的)

    [cpp] view plain copy
     
      1. /* MSDN:Carries information used to load common control classes from the  
      2. * dynamic-link library (DLL).This structure is used with the InitCommonControlsEx function.  
      3. * 需要使用的结构体和函数 
      4. */  
      5. typedef struct tagINITCOMMONCONTROLSEX {  
      6.     DWORD dwSize;  
      7.     DWORD dwICC;  
      8. } INITCOMMONCONTROLSEX, *LPINITCOMMONCONTROLSEX;  
      9. /* 
      10. The set of bit flags that indicate which common control classes will be loaded from  
      11. the DLL.This can be a combination of the following values.  
      12.  
      13. ICC_ANIMATE_CLASS 
      14. Load animate control class.  
      15. ICC_BAR_CLASSES 
      16. Load toolbar, status bar, trackbar, and ToolTip control classes.  
      17. ICC_COOL_CLASSES 
      18. Load rebar control class.  
      19. ICC_DATE_CLASSES 
      20. Load date and time picker control class.  
      21. ICC_HOTKEY_CLASS 
      22. Load hot key control class.  
      23. ICC_INTERNET_CLASSES 
      24. Load IP address class.  
      25. ICC_LINK_CLASS 
      26. Load a hyperlink control class.  
      27. ICC_LISTVIEW_CLASSES 
      28. Load list-view and header control classes.  
      29. ICC_NATIVEFNTCTL_CLASS 
      30. Load a native font control class.  
      31. ICC_PAGESCROLLER_CLASS 
      32. Load pager control class.  
      33. ICC_PROGRESS_CLASS 
      34. Load progress bar control class.  
      35. ICC_STANDARD_CLASSES 
      36. Load one of the intrinsic User32 control classes. The user controls include button,  
      37. edit, static, listbox, combobox, and scrollbar.  
      38. ICC_TAB_CLASSES 
      39. Load tab and ToolTip control classes.  
      40. ICC_TREEVIEW_CLASSES 
      41. Load tree-view and ToolTip control classes.  
      42. ICC_UPDOWN_CLASS 
      43. Load up-down control class.  
      44. ICC_USEREX_CLASSES 
      45. Load ComboBoxEx class.  
      46. ICC_WIN95_CLASSES 
      47. Load animate control, header, hot key, list-view, progress bar, status bar, tab, ToolTip,  
      48. toolbar, trackbar, tree-view, and up-down control classes.  
      49. */  
      50. BOOL InitCommonControlsEx(const LPINITCOMMONCONTROLSEX lpInitCtrls);  
      51.   
      52. //  例如创建ListView控件,需要先这样  
      53. //  包含相关的头文件和加载对应的lib库文件  
      54. #include <commctrl.h>  
      55. #pragma comment(lib, "comctl32.lib")  
      56.   
      57. INITCOMMONCONTROLSEX icc = {sizeof(icc), ICC_LISTVIEW_CLASSES};  
      58. InitCommonControlsEx(&icc);  

    http://blog.csdn.net/visualeleven/article/details/6858157

  • 相关阅读:
    欢乐送小程序自动化探索实践
    看完这篇还不了解 Nginx,那我就哭了!
    测试人的技术栈
    Bug,项目过程中的重要数据
    什么是测试开发工程师?
    hdu 1219 AC Me
    hdu 1202 The calculation of GPA(算绩点问题)
    hdu1205吃糖果(插空法)
    hdu1201(18岁生日)
    hdu1231最大连续子序列
  • 原文地址:https://www.cnblogs.com/findumars/p/6002354.html
Copyright © 2011-2022 走看看