Partager via


CBasePane::CanFocus

Specifies whether the pane can receive focus.

virtual BOOL CanFocus() const;

Return Value

TRUE if the pane can receive focus; otherwise FALSE.

Remarks

Override this method in a derived class to control focus. For example, because toolbars cannot receive focus, this method returns FALSE when it is called on toolbar objects.

The framework tries to set the input focus when a pane is docked or floated.

Requirements

Header: afxbasepane.h

See Also

Reference

CBasePane Class

Hierarchy Chart