AfxIsMFCToolBar

Determines whether the given window is a toolbar object.

BOOL AFXAPI AfxIsMFCToolBar(
   CWnd* pWnd
);

Parameters

  • [in] pWnd
    A pointer to an object that is derived from CWnd.

Return Value

TRUE if the provided window is a toolbar object; otherwise FALSE.

Remarks

This method returns TRUE if pWnd derives from CMFCToolBar. This method is useful when you have to validate that a function or method parameter is a CMFCToolBar object.

Requirements

Header: afxpriv.h

See Also

Reference

Macros, Global Functions, and Global Variables

CWnd Class

CMFCToolBar Class