Share via


CMFCToolBar::GetHighlightedButton

Returns a pointer to the toolbar button that is currently highlighted.

CMFCToolBarButton* GetHighlightedButton() const;

Return Value

A pointer to a toolbar button object; or NULL if no button is highlighted.

Remarks

A toolbar button is highlighted if it has keyboard focus. A toolbar button is also highlighted if the toolbar buttons are hot-tracked in this application (for more information, see CMFCToolBar::GetHotBorder and CMFCToolBar::SetHotBorder) and the mouse is pointing at it when no toolbar button or menu item has keyboard focus.

Requirements

Header: afxtoolbar.h

See Also

Concepts

MFC Hierarchy Chart

Reference

CMFCToolBar Class