MFC window Style WS window styles Chinese description and definition in C # use

Source: Internet
Author: User

Window style (Windows style)

Ws_border with Border window
Ws_caption must match the Ws_border style, but cannot be used in conjunction with the Ws_dlgframe style. Indicates that the window contains the caption to be partially.
The Ws_child Description window is a child window and cannot be applied to pop-up window styles (ws_popup).
Ws_childwindow with Ws_child.
Ws_clipchildren the cropped area of the child window is not drawn when the parent window is drawn. Used when the parent window is established.
Ws_clipsiblings trims the associated Subwindow, which means that when a particular child window receives a redraw message, the ws_clipsiblings style removes the portion of the child window that overlaps with the other child windows in the area to redraw. (If you do not specify a ws_clipsiblings style, and the child window overlaps, when you draw in the client area of a child window, it may draw in the client area of the adjacent child window.) ) is only used with the ws_child style.
Ws_disabled creates a window with an initial state of forbidden.
Ws_dlgframe creates a window with a double border, but no title bar.
WS_GROUP Specifies the first of a set of controls that a user can use to move through the set of controls. Controls that set the Ws_group style to false after the first control belong to this group. The next control with Ws_group style will start the next group (which means that a group ends at the beginning of the next group).
Ws_hscroll creates a window with a horizontal scroll bar.
Ws_iconic: Creates a window with an initial state of minimized state. Same as the ws_minimize style.
Ws_maximize creates a maximized window.
Ws_maximizebox creates a window with a maximize button.
Ws_minimize creates a window that has an initial state of minimized. Use only with the ws_overlapped style.
Ws_minimizebox creates a window with a minimized button.
Ws_overlapped creates an overlapping window. Overlapping windows typically have title bars and boundaries.
Ws_overlappedwindow Create a Ws_overlapped,ws_caption,ws_sysmenu,ws_thickframe,ws_minimizebox and Ws_ MaximizeBox-style overlapping windows.
Ws_popup creates a pop-up window that cannot be used with the ws_child style.
Ws_popupwindow creates a pop-up window with Ws_border,ws_popup and Ws_sysmenu styles. In order for the Control menu to be visible, you must use the Ws_caption style with Ws_popupwindow.
Ws_sizebox: Creates a window with an adjustable border, the same as the Ws_thickframe style.
Ws_sysmenu creates a window with a control menu on the title bar. Used only for Windows with a title bar.
WS_TABSTOP specifies one of several controls that the user can move through the TAB key. The TAB key moves the user to the next control defined in the Ws_tabstop style.
Ws_thickframe creates a window with a thick border that can be resized by a thick border.
Ws_tiled: Produces a cascade of Windows. A cascading window has a caption and a border. Same as the ws_overlapped style.
Ws_tiledwindow: Create a window with a ws_overlapped,ws_caption,ws_sysmenu,ms_thickframe style.
Ws_visible creates a window that is initially visible.
Ws_vscroll creates a window with a vertical scroll bar.

Extended window style (Extended Windows style)

Ws_ex_acceptfiles indicates that a window created with this style can accept drag-and-drop files.
Ws_ex_appwindow-places a top-level window on the taskbar when the window is visible.
Ws_ex_clientedge indicates that the window has a 3D appearance, which means that the border has a sinking boundary.
Ws_ex_contexthelp contains a question mark in the title bar of the window. When the user clicks the question mark, the shape of the mouse cursor changes to a question mark with a pointer. If the user then clicks a child window, the child window receives a WM_HELP message.
Ws_ex_controlparent allows the user to tab through the window's child window.
Ws_ex_dlgmodalframe indicates a window with a double boundary, which can have a title bar (optional) When you specify the Ws_caption style flag in the dwstyle parameter.
WS_EX_LEFT specifies that the window has left-justified properties. This is the default value.
Ws_ex_leftscrollbar the vertical scroll bar to the left of the customer area.
Ws_ex_ltrreading Displays the text of the window in a left-to-right manner. This is the default way.
Ws_ex_mdichild creates an MDI child window.
WS_EX_NOPARENTNOTIFY specifies that a child window created with this style will not send a wm_parentnotify message to the parent window when it is created or destroyed.
The Ws_ex_overlappedwindow combines Ws_ex_clientedge and Ws_ex_wind-owedge styles.
The Ws_ex_palettewindow combines Ws_ex_windowedge and ws_ex_topmost styles.
Ws_ex_right gives the window a right-justified property. This is related to the window class.
Ws_ex_rightscrollbar the vertical scroll bar (if any) on the right side of the customer area. This is the default way.
Ws_ex_rtlreading Displays the window text in right-to-left order.
Ws_ex_staticedge creates a window with a three-dimensional boundary that does not accept entries entered by the user.
Ws_ex_toolwindow creates a tool window that is intended to be used as a floating tool bar. The tool window has a title bar that is shorter than the usual title bar, and the title of the window is displayed in a small font. The tool window does not appear in the window that appears when the task bar or the user presses ALT + TAB.
WS_EX_TOPMOST specifies that a window created with this style must be placed on top of all non-top-level windows, even if the window is not already active, and remains on top. The application can use the Setwindowspos member function to add or remove this property.
ws_ex_transparent specifies that a window created with this style is transparent. This means that any window below this window will not be blocked by this window. A window created with this style will receive WM_PAINT messages only if the windows below it have been updated.
Ws_ex_windowedge specifies a window with a raised border.

Defined
        //   <summary>         ///   window style        //   </summary> [FlagsAttribute]/* Indicates that an enumeration can be handled as a bit field (that is, a set of flags), only if this attribute is added to judge with & and operations. */         Public enumWindowstyles:UINT{Ws_border =0x00800000, ws_caption =0x00c00000, Ws_child =0x40000000, Ws_childwindow =0x40000000, Ws_clipchildren =0x02000000, ws_clipsiblings =0x04000000, ws_disabled =0x08000000, Ws_dlgframe =0x00400000, Ws_group =0x00020000, Ws_hscroll =0x00100000, Ws_iconic =0x20000000, ws_maximize =0x01000000, Ws_maximizebox =0x00010000, ws_minimize =0x20000000, Ws_minimizebox =0x00020000, ws_overlapped =0x00000000, Ws_overlappedwindow = ws_overlapped | ws_caption | Ws_sysmenu | Ws_thickframe | Ws_minimizebox | Ws_maximizebox, Ws_popup =0x80000000, Ws_popupwindow = Ws_popup | Ws_border | Ws_sysmenu, Ws_sizebox =0x00040000, Ws_sysmenu =0x00080000, ws_tabstop =0x00010000, Ws_thickframe =0x00040000, ws_tiled =0x00000000, Ws_tiledwindow = ws_overlapped | ws_caption | Ws_sysmenu | Ws_thickframe | Ws_minimizebox | Ws_maximizebox, ws_visible =0x10000000, Ws_vscroll =0x00200000}//   <summary>         ///   window extension style        //   </summary> [FlagsAttribute]/* Indicates that an enumeration can be handled as a bit field (that is, a set of flags), only if this attribute is added to judge with & and operations. */         Public enumWindowstylesex:UINT{ws_ex_acceptfiles =0x00000010, Ws_ex_appwindow =0x00040000, Ws_ex_clientedge =0x00000200, ws_ex_composited =0x02000000, Ws_ex_contexthelp =0x00000400, ws_ex_controlparent =0x00010000, Ws_ex_dlgmodalframe =0x00000001, ws_ex_layered =0x00080000, Ws_ex_layoutrtl =0x00400000, Ws_ex_left =0x00000000, Ws_ex_leftscrollbar =0x00004000, ws_ex_ltrreading =0x00000000, Ws_ex_mdichild =0x00000040, ws_ex_noactivate =0x08000000, Ws_ex_noinheritlayout =0x00100000, ws_ex_noparentnotify =0x00000004, Ws_ex_overlappedwindow = Ws_ex_windowedge | Ws_ex_clientedge, Ws_ex_palettewindow = Ws_ex_windowedge | Ws_ex_toolwindow | Ws_ex_topmost, ws_ex_right =0x00001000, Ws_ex_rightscrollbar =0x00000000, ws_ex_rtlreading =0x00002000, Ws_ex_staticedge =0x00020000, Ws_ex_toolwindow =0x00000080, Ws_ex_topmost =0x00000008, ws_ex_transparent =0x00000020, Ws_ex_windowedge =0x00000100}

MFC window Style WS window styles Chinese description and definition in C # use

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.