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.
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。