Professional User Interface Suite, Copyright FOSS Software Inc. Help Published with Permission.

Properties

m_bNoRefToCmdMngr Specifies that the pop-up menu tracked by the button control should contain command items which are not based on the command descriptions stored in the command manager if it is true. It is set to false by default.
m_bQuickActivationEnabled Specifies that the accelerator-based activation of the button control is enabled if set to true by default.
m_bQuickActivationSeparatedDropDown This property takes effect only if the m_bQuickActivationEnabled property is set to true and the button has a separate drop-down right area. The associated pop-up menu is activated if this property is set to true; otherwise, the keyboard shortcut when pressed works as though the button left area is clicked. By default, the property is set to true.
m_dwMenuOpt Button menu tacking flags (a set of TPMX_*** flags). The default value is TPMX_TOPALIGN.
m_icon Button icon.
m_menu Context menu.
m_nAdvancedTipStyle Specifies the style of the advance tool tip window (see CExtPopupMenuTipWnd::__ETS_*** constants). The default value is CExtPopupMenuTipWnd::__ETS_RECTANGLE_NO_ICON.
m_nMenuLeftAreaWidth Specifies the width of the logo area on the left side in the button's menu. The default value is zero.

Classes

ActivateTooltip Enables or disables the tooltip.
CExtButton Constructor.
GetAlign Returns the current alignment of the icon relative to the text (For details, see the SetAlign() method)
GetAutoChangeCmdIcon Returns TRUE if the button with a popup menu should automatically change its icon depending on the command identifier.
GetAutoChangeID Returns TRUE if the button with a popup menu should automatically change its command identifier.
GetBkColor Returns the background color of the button. The returned value equal to COLORREF(-1) means that the default background consistent with the currently selected user interface theme is used.
GetDefault Returns TRUE if the CExtButton object gets focus by default.
GetDrawFocusRect Returns TRUE if the focus rectangle is displayed when the button gets focus.
GetFlat Returns the button style. If TRUE, the button style is set to flat.
GetSeparatedDropDown Returns TRUE if the button has a dropdown arrow which is used for activating the menu.
GetTextColorDisabled Returns the current text color of the button control when its window is disabled.
GetTextColorHover Returns the current text color of the button control when it has focus or hovered by the mouse pointer.
GetTextColorNormal Returns the default text color of the button control.
GetTextColorPressed Returns the current text color of the button control when it is pressed.
GetType Returns the type of the button control (i.e. BS_PUSHBUTTON or BS_CHECKBOX)
Is3StateType Returns TRUE if the button is a three-state button control (i.e. BS_AUTO3STATE or BS_3STATE).
SetAlign Specifies the alignment of the icon relative to the text
SetAutoChangeCmdIcon Sets/resets the flag indicating whether the button with a popup menu should automatically change its icon depending on the command identifier.
SetAutoChangeID Sets/resets the flag indicating whether the button with a popup menu should automatically change its command identifier.
SetBkColor Sets the background color of the button.
SetBtnCursor Assigns a non-animated cursor to the button.
SetDrawBorder Displays the button border the mouse pointer is over the button (only for the flat button style).
SetDrawFocusRect Specifies whether the focus rectangle should be displayed when the button gets focus.
SetFlat Sets either standard or flat button style.
SetIcon Assigns icons to the button. The CExtButton class supports up to four icons, which change each other depending on focus, hover, enabled or pressed state.
SetSeparatedDropDown Displays a dropdown arrow used for activating the menu.
SetTextColorDisabled Sets the text color of the button control when its window is disabled.
SetTextColorHover Sets the text color of the button control when it has focus or hovered by the mouse pointer.
SetTextColorNormal Sets the default text color of the button control.
SetTextColorPressed Sets the text color of the button control when it is pressed.
SetTooltipText Sets the tooltip text.
SupportsCheck Returns TRUE if the button works like a push-like check box control.
SupportsCommand Returns TRUE if the button works like a standard push button.

Overridables

OnAdvancedPopupMenuTipWndDisplay Invoked to show the tooltip window.
OnAdvancedPopupMenuTipWndGet Called to get a pointer to the advanced tooltip window implemented in the CExtPopupMenuTipWnd class. If the method returns NULL, the standard tooltip window will be used instead.

See Also

CExtButton Overview | Hierarchy Chart