Simple foundation of MFC

Source: Internet
Author: User
Extended window style:
Ws_ex_acceptfiles indicates that the windows created in this style can accept drag and drop files.
· Ws_ex_clientedge indicates that the window has a 3D appearance, which means that the border has a sinking border.
· Ws_ex_contexthelp contains question marks in the title bar of the window. When you click a question mark, the shape of the mouse cursor changes to a question mark with a pointer. If you click a subwindow, The subwindow receives a wm_help message.
· Ws_ex_controlparent allows you to use the tab key to traverse window subwindows.
· Ws_ex_dlgmodalframe indicates a window with dual boundaries. When you specify the ws_caption style flag in the dwstyle parameter, it can have a title bar (optional ).
· Ws_ex_left indicates that the window has the left alignment attribute. This is the default value.
· Ws_ex_leftscrollbar: place the vertical scroll bar on the left of the customer area.
· Ws_ex_ltrreading displays the window text from left to right. This is the default method.
· Ws_ex_mdichild: Create an MDI subwindow.
· Ws_ex_noparentnotify indicates that the Child Window created in this style will not send the wm_parentnotify message to the parent window when it is created or destroyed.
· Ws_ex_overlappedwindow combines ws_ex_clientedge and WS_EX_WIND-OWEDGE style.
· Ws_ex_palettewindow combines the ws_ex_shortwedge and ws_ex_topmost styles.
· Ws_ex_right: The right alignment attribute of the window. This is related to the window class.
· Ws_ex_rightscrollbar: place the vertical scroll bar (if any) on the right of the customer area. This is the default method.
· Ws_ex_rtlreading displays the window text from right to left.
· Ws_ex_staticedge creates a window with 3D boundaries, which is used to reject user input.
· Ws_ex_toolwindow: create a tool window to be used as a floating toolbar. The tool window has a title bar, which is shorter than the normal title bar. The title of the window is displayed in a small font. The tool window does not appear in the job bar or when you press Alt + TAB.
· Ws_ex_topmost specifies that the window created in this style must be placed on top of all non-top-level windows. Even if the window is not activated, it will be kept at the top. Applications can use the setwindowspos member function to add or remove this attribute.
· Ws_ex_transparent specifies that the window created in this style is transparent. This means that no window under this window will be blocked by this window. The windows created in this style receive the wm_paint message only when the windows below it have been updated.
· Ws_ex_javaswedge specifies a window with a raised border.
Window style:
· Ws_border creates a boundary window.
· Ws_caption: create a window with a title bar (implicit ws_border style ). It cannot be used with the ws_dlgframe style.
· Ws_child creates a subwindow. It cannot be used with the ws_popup style.
· Ws_clipchildren: When drawing in the parent window, remove the area occupied by the Child Window. Used when creating a parent window.
· Ws_clipsiblings: this means that when a specific subwindow receives a re-painting message, the ws_clipsiblings style removes the overlapping part of the Child window from the area to be re-painted in the Child Window. (If the ws_clipsiblings style is not specified and the child windows overlap, when you draw in the customer area of a Child Window, it may be drawn in the customer area of the adjacent Child Window .) It is used only with the ws_child style.
· Ws_disabled: create a window with the initial status disabled.
· Ws_dlgframe creates a window with dual boundaries, but no title bar.
· Ws_group specifies the first widget in A group. You can use the arrow keys to move the widget in this group. After the first control, all the controls with the ws_group style set to false belong to this group. The next control with the ws_group style starts the next group (this means that a group ends at the beginning of the next group ).
· Ws_hscroll: create a window with a horizontal scroll bar.
· Ws_maximize: Create a maximum window.
· Ws_maximizebox: create a window with the maximum button.
· Ws_minimize creates a window with the initial state minimized. It is used only with the ws_overlapped style.
· Ws_minimizebox: create a window with a minimal button.
· Ws_overlapped creates an overlapping window. Overlapping windows usually have titles and boundaries.
· Ws_overlappedwindow: Create a overlapping window with ws_overlapped, ws_caption, ws_sysmenu, ws_thickframe, ws_minimizebox, and ws_maximizebox styles.
· Ws_popup creates a pop-up window and cannot be used with the ws_child style.
· Ws_popupwindow: Create a pop-up window with ws_border, ws_popup, and ws_sysmenu styles. To make the control menu visible, ws_caption style must be used with ws_popupwindow.
· Ws_sysmenu: create a window with a control menu on the title bar. Only use the window with a title bar.
· Ws_tabstop specifies one of some controls. You can use the tab key to move them. The tab key allows you to move to the next control defined in the ws_tabstop style.
· Ws_thickframe: create a window with a thick border. You can use a thick border to change the window size.
· Ws_visible: Create an initial visible window.
· Ws_vscroll: create a window with a vertical scroll bar.

Simple foundation of MFC

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.