打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
GWL

GWL_STYLE指的是那些旧的窗口属性。相对于GWL_EXSTYLEGWL扩展属性而言的。

WS_BORDER 

Creates a window that has a thin-line border.
WS_CAPTION 
Creates a window that has a title bar (includes the WS_BORDERstyle).
WS_CHILD 
Creates a child window. A window with this style cannot have amenu bar. This style cannot be used with the WS_POPUP style.
WS_CHILDWINDOW 
Same as the WS_CHILD style.
WS_CLIPCHILDREN 
Excludes the area occupied by child windows when drawing occurswithin the parent window. This style is used when creating theparent window.
WS_CLIPSIBLINGS 
Clips child windows relative to each other; that is, when aparticular child window receives a WM_PAINT message, theWS_CLIPSIBLINGS style clips all other overlapping child windows outof the region of the child window to be updated. If WS_CLIPSIBLINGSis not specified and child windows overlap, it is possible, whendrawing within the client area of a child window, to draw withinthe client area of a neighboring child window.
WS_DISABLED 
Creates a window that is initially disabled. A disabled windowcannot receive input from the user. To change this after a windowhas been created, use EnableWindow.
WS_DLGFRAME 
Creates a window that has a border of a style typically usedwith dialog boxes. A window with this style cannot have a titlebar.
WS_GROUP 
Specifies the first control of a group of controls. The groupconsists of this first control and all controls defined after it,up to the next control with the WS_GROUP style. The first controlin each group usually has the WS_TABSTOP style so that the user canmove from group to group. The user can subsequently change thekeyboard focus from one control in the group to the next control inthe group by using the direction keys.

You can turn this style on and off to change dialog boxnavigation. To change this style after a window has been created,use SetWindowLong.

WS_HSCROLL 
Creates a window that has a horizontal scroll bar.
WS_ICONIC 
Creates a window that is initially minimized. Same as theWS_MINIMIZE style.
WS_MAXIMIZE 
Creates a window that is initially maximized.
WS_MAXIMIZEBOX 
Creates a window that has a maximize button. Cannot be combinedwith the WS_EX_CONTEXTHELP style. The WS_SYSMENU style must also bespecified.
WS_MINIMIZE 
Creates a window that is initially minimized. Same as theWS_ICONIC style.
WS_MINIMIZEBOX 
Creates a window that has a minimize button. Cannot be combinedwith the WS_EX_CONTEXTHELP style. The WS_SYSMENU style must also bespecified.
WS_OVERLAPPED 
Creates an overlapped window. An overlapped window has a titlebar and a border. Same as the WS_TILED style.
WS_OVERLAPPEDWINDOW 
Creates an overlapped window with the WS_OVERLAPPED,WS_CAPTION, WS_SYSMENU, WS_THICKFRAME, WS_MINIMIZEBOX, andWS_MAXIMIZEBOX styles. Same as the WS_TILEDWINDOW style.
WS_POPUP 
Creates a pop-up window. This style cannot be used with theWS_CHILD style.
WS_POPUPWINDOW 
Creates a pop-up window with WS_BORDER, WS_POPUP, andWS_SYSMENU styles. The WS_CAPTION and WS_POPUPWINDOW styles must becombined to make the window menu visible.
WS_SIZEBOX 
Creates a window that has a sizing border. Same as theWS_THICKFRAME style.
WS_SYSMENU 
Creates a window that has a window menu on its title bar. TheWS_CAPTION style must also be specified.

没试出来!!

WS_TABSTOP 
Specifies a control that can receive the keyboard focus whenthe user presses the TAB key. Pressing the TAB key changes thekeyboard focus to the next control with the WS_TABSTOP style.

You can turn this style on and off to change dialog boxnavigation. To change this style after a window has been created,useSetWindowLong.

WS_THICKFRAME 
Creates a window that has a sizing border. Same as theWS_SIZEBOX style.
WS_TILED 
Creates an overlapped window. An overlapped window has a titlebar and a border. Same as the WS_OVERLAPPED style.
WS_TILEDWINDOW 
Creates an overlapped window with the WS_OVERLAPPED,WS_CAPTION, WS_SYSMENU, WS_THICKFRAME, WS_MINIMIZEBOX, andWS_MAXIMIZEBOX styles. Same as the WS_OVERLAPPEDWINDOW style.
WS_VISIBLE 
Creates a window that is initially visible.

This style can be turned on and off by using ShowWindow orSetWindowPos.

WS_VSCROLL 
Creates a window that has a vertical scroll bar.

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
Window Styles
创建大窗口
关于WS_CLIPCHILDREN和WS_CLIPSIBLINGS的理解
如何区分WS
对话框属性中设置的窗口风格
请问如何屏蔽掉VB窗口中的最大化按钮
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服