WS_窗口風格常量

WS_窗口風格常量
WS_BODER    窗口具備細線邊框
WS_CAPTION   窗口具備標題欄(包含 WS_BODER)
WS_CHILD    建立一個子窗口(此風格不能與 WS_POPUP 一塊兒使用 )
WS_CHILDWINDOW 與 WS_CHILD 相同
WS_CLIPHILDREN 當在父窗口中畫圖時,繞開子窗口占有的區域。
WS_CLIPSBLINGS 裁剪相互關聯的子窗口,使一個特殊 的子窗口收到 WS_PAINT 消息時,僅對自身窗口起做用。此式樣僅適合具備 WS_CHILD 風格的窗口。
WS_DISABLED 建立一個開始時禁止的窗口
WS_DLGFRAME 建立一個具備某種式樣的邊框的窗口,該式樣通常與對話框一塊兒使用,具備該式樣的窗口不能有一個標題欄。
WS_GROUP 指定一組控制中的第一個控制,具備該式樣控制的下一個控制終止當前控制組,而且開始下一個控制組。
WS_HSCROLL 窗口具備水平滾動條
WS_VSCROOL 窗口具備垂直滾動條
WS_MAXIMIZE 窗口初始時最大化
WS_MINIMIZE 窗口初始時最小化
WS_MINIMIZEBOX 窗口具備最小化按鈕
WS_MAXIMIZEBOX 窗口具備最大化按鈕
WS_OVERLAPPED 重疊 式窗口,該式樣窗口 帶有一個標題欄和邊框
WS_OVERLAPPEDWINDOW 具備WS_OVERLAPPED,WS_CAPTION,WS_SYSMENU,WS_THICKFRAM, WS_MINIMIZEBOX,WS_MAXIMIZEBOX 式樣的重疊式窗口
WS_POPUP 彈出式窗口,不能與 WS_CHILD 一塊兒使用
WS_POPUPWINDOW 具備 WS_BODER,WS_POPUP,WS_SYSMENU 式樣的彈出式窗口。爲了使 SYSTEM 菜單(也叫 CONTROL 菜單可見),必須將 WS_CAPTION與 WS_POPUPWINDOW 式樣組合使用。
WS_SYSMENU 具備 SYSTEM 菜單欄,還必須指定 WS_CAPTION 式樣
WS_THICKFRAME 具備可調邊框
WS_VISIBLE 窗口初始時可見

擴展口風格 常量

WS_EX_ACCEPTFILES 窗口可接收拖放文件
WS_EX_DLGMODALFRAME 具備雙線邊框
WS_EX_NOPARENTNOTIFY 當一個子窗口建立或取消時,不向其父窗口發送WM_PARENTNOTIFY 消息
WS_EX_TOPMOST 窗口放在全部非頂層窗口之上,即便窗口不工做。


支持 3D 外觀的擴展風格
WS_EX_CLIENTEDGE 爲應用程序的主工做空間建立一個下陷的客戶區,例如一個字處理程序的文本窗口
WS_EX_STATICEDGE 爲只用於輸出的窗口建立下陷的客戶區。

 

 

FROM MSDN:html

  • WS_BORDER    Creates a window that has a border.web

  • WS_CAPTION    Creates a window that has a title bar (implies the WS_BORDER style). Cannot be used with the WS_DLGFRAME style.windows

  • WS_CHILD    Creates a child window. Cannot be used with the WS_POPUP style.app

  • WS_CHILDWINDOW    Same as the WS_CHILD style. ide

  • WS_CLIPCHILDREN    Excludes the area occupied by child windows when you draw within the parent window. Used when you create the parent window.url

  • WS_CLIPSIBLINGS    Clips child windows relative to each other; that is, when a particular child window receives a paint message, the WS_CLIPSIBLINGS style clips all other overlapped child windows out of the region of the child window to be updated. (If WS_CLIPSIBLINGS is not given and child windows overlap, when you draw within the client area of a child window, it is possible to draw within the client area of a neighboring child window.) For use with the WS_CHILD style only.spa

  • WS_DISABLED    Creates a window that is initially disabled.htm

  • WS_DLGFRAME    Creates a window with a double border but no title.ip

  • WS_GROUP    Specifies the first control of a group of controls in which the user can move from one control to the next with the arrow keys. All controls defined with the WS_GROUP style FALSE after the first control belong to the same group. The next control with the WS_GROUP style starts the next group (that is, one group ends where the next begins).ci

  • WS_HSCROLL    Creates a window that has a horizontal scroll bar.

  • WS_ICONIC    Creates a window that is initially minimized. Same as the WS_MINIMIZE style.

  • WS_MAXIMIZE    Creates a window of maximum size.

  • WS_MAXIMIZEBOX    Creates a window that has a Maximize button.

  • WS_MINIMIZE    Creates a window that is initially minimized. For use with the WS_OVERLAPPED style only.

  • WS_MINIMIZEBOX    Creates a window that has a Minimize button.

  • WS_OVERLAPPED    Creates an overlapped window. An overlapped window usually has a caption and a border.

  • WS_OVERLAPPEDWINDOW    Creates an overlapped window with the WS_OVERLAPPED , WS_CAPTION , WS_SYSMENU , WS_THICKFRAME , WS_MINIMIZEBOX , and WS_MAXIMIZEBOX styles.

  • WS_POPUP    Creates a pop-up window. Cannot be used with the WS_CHILD style.

  • WS_POPUPWINDOW    Creates a pop-up window with the WS_BORDER , WS_POPUP , and WS_SYSMENU styles. The WS_CAPTION style must be combined with the WS_POPUPWINDOW style to make the Control menu visible.

  • WS_SIZEBOX    Creates a window that has a sizing border. Same as the WS_THICKFRAME style.

  • WS_SYSMENU    Creates a window that has a Control-menu box in its title bar. Used only for windows with title bars.

  • WS_TABSTOP    Specifies one of any number of controls through which the user can move by using the TAB key. The TAB key moves the user to the next control specified by the WS_TABSTOP style.

  • WS_THICKFRAME    Creates a window with a thick frame that can be used to size the window.

  • WS_TILED    Creates an overlapped window. An overlapped window has a title bar 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 , and WS_MAXIMIZEBOX styles. Same as the WS_OVERLAPPEDWINDOW style.

  • WS_VISIBLE    Creates a window that is initially visible.

  • WS_VSCROLL    Creates a window that has a vertical scroll bar.

 
4646
5463
相關文章
相關標籤/搜索