VC + + MFC button all styles style

Source: Internet
Author: User

Button Styles

bs_3state the same as the check box this style button can be clicked dimmed. The dimming state is typically used to indicate that the key for this style is in the disabled state.

bs_auto3state same as the three-state check box when the user selects it this button style state appearance changes.

Bs_autocheckbox As with the check box, a check mark appears after the user point control, which disappears when the user selects the next point.

Bs_autoradiobutton as with the single-box, the difference is that the user will highlight it when clicked, and will be the same group of other buttons of the same highlight state transferred to themselves.

bs_bitmap Specifies that the button is displayed as a bitmap.

bs_bottom Place the button caption at the bottom of the button's rectangular area.

bs_center The button caption is displayed in the center of the button's rectangular area.

Bs_checkbox Create a small square on the right side of the button (this style must be Bs_lefttext used in combination. )

Bs_defpushbutton Create a generic default button The button has a thick black border. The user can click on the button by pressing the ENTER key, which implements the function that the user typically uses (that is, the default execution action function).

Bs_flat Specifies that the button is 2D button, do not use 3D the shadow used by the control.

Bs_groupbox Create a group box to group the controls, and if a caption is used, the caption appears in the upper-left corner of the group box.  

Bs_icon displays an icon on the specified button.  

Bs_left aligns the caption to the left within the control's rectangular area. If the button is a check box or radio box with no Bs_rightbutton style , the text will be left aligned on the right side of the check box or radio box (this is redundant , the meaning text is selected in the check box or radio box to the right of the small box or circle. )。

Bs_lefttext When the button is a radio or a check box, the caption text appears to the left of the customer area of the radio or check box (that is, the rectangle box for the check box, the round box for the marquee).  

bs_multiline if the title text is too long, the text is wrapped within the drawing area.

bs_notify activates the button so that it can be sent to the parent window bn_dblclk, Bn_killfocus, Bn_setfocus message, note: Regardless of whether this style is used, the button has a bn_clicked can send messages.

Bs_ownerdraw Create a custom-styled button. The framework calls the DrawItem member function when the appearance of the button changes . This style must be set when using the CBitmapButton class.

Bs_pushbutton creates a button (that is, the most common button) that, when clicked, sends the parent window a Wm_command message.

bs_pushlike The (Multi-box, tri-State multi-box, single-box) is displayed as a button that floats when the unselected state is not selected, but is caught in the state when checked.  

Bs_radiobutton Create a radio box that has a circular client area (this style does not match the bs_lefttext The style is used in conjunction with the header text on its right. A radio box is typically used to have multiple optional options associated with it, but only if one chooses between the other.  

bs_right Right-aligns the text within the drawing area of the button. However, if the button is a Single or check box with no Bs_rightbutton style, the caption text will be right-aligned on the right side of the Select selection or check box.  

Bs_rightbutton set the circle of a marquee selection or check box to the right of the rectangular area of the button. the same effect as the bs_lefttext.  

bs_text Specifies that the button displays a text caption.

bs_top Displays the caption text at the top edge of the drawing area of the button.

Bs_userbutton deprecated, only as compatible - -bit system version of Windows , based on + bit Windows please use the system Bs_ownerdraw style instead.  

Bs_vcenter The caption of the set button is centered in the vertical direction of the drawing area.   

VC + + MFC button all styles style

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.