David的测试技术空间,收藏好文档和分享我的技术理解。5年的数通产品测试和安全产品测试经验,3年Web产品测试和多年测试管理和测试工具开发经验。目前关注性能分析调优、Jmeter和TestNG+WebDriver+Hamcrest的培训推广。Welcome沟通交流,请留言或者发邮件到daviwang_2004 at soguo.com。

关于windows控件(从网上摘录的)

上一篇 / 下一篇  2007-09-04 17:42:52 / 个人分类:Windows



  1.标准控件

  button :按钮
  combobox :复合框
  edit :编辑
  listbox :列表
  richedit :rich edit version 1.0
  richedit_class :rich edit version 2.0
  scrollbar :滚动条
  static :静态

  2.外壳附带的公用控件

  注:建立前需要用initcommoncontrolsex进行初始化

initcommoncontrolsex icex;// ensure that the common control dll is loaded.
icex.dwsize = sizeof(initcommoncontrolsex);
icex.dwicc = icc_listview_classes;
initcommoncontrolsex(&icex);

hwnd hwndlistview =createwindowex(0,wc_listview, //wc_listview不需要加引号
text(""),
ws_child | ws_visible|ws_border | lvs_icon | lvs_editlabels | ws_ex_clientedge ,
10,
10,
100,
100,
hwnd,
(hmenu)1000, //控件id
((lpcreatestruct) lparam)->hinstance, //实例句柄
null);
}
animate_class
datetimepick_class
hotkey_class
monthcal_class
progress_class
rebarclassname
statusclassname
toolbarclassname
tooltips_class
trackbar_class
updown_class
wc_comboboxex
wc_header
wc_ipaddress
wc_listview
wc_pagescroller
wc_tabcontrol
wc_treeview

  3.特殊窗口

  mdiclient :mdi客户区窗口
  
combolbox :the class for the list box contained in a combo box.

ddemlevent :windows nt/2000: the class for ddeml events.
message :windows 2000: the class for a message-only window.
#32768 :the class for a menu.
#32769 :the class for the desktop window.
#32770 :the class for a dialog box.
#32771 :the class for the task switch window.
#32772 :windows nt/2000: the class for icon titles.

TAG: Windows

 

评分:0

我来说两句

Open Toolbar