共用方式為


CToolBarCtrl::SetOwner

Sets the owner window for the toolbar control.

void SetOwner(
   CWnd* pWnd 
);

Parameters

  • pWnd
    Pointer to the CWnd or CWnd-derived object that will be the new owner window for the toolbar control.

Remarks

The owner window is the window that receives notifications from the toolbar.

Requirements

Header: afxcmn.h

See Also

Concepts

CToolBarCtrl Class

CToolBarCtrl Members

Hierarchy Chart

CToolBarCtrl::Create