Partager via


CMFCToolBar::GetHwndLastFocus

Returns a handle to the window that had the input focus just before the toolbar did.

HWND GetHwndLastFocus() const;

Return Value

A handle to window that is not derived from CMFCBaseToolBar Class, which previously had the input focus; or NULL if there is no such window.

Remarks

When a CMFCToolBar Class control receives the input focus, it stores a handle to the window that lost the focus so that it can restore it later.

Requirements

Header: afxtoolbar.h

See Also

Reference

CMFCToolBar Class

Hierarchy Chart