CReBarCtrl::SetOwner

Implements the behavior of the Win32 message RB_SETPARENT, as described in the Windows SDK.

CWnd* SetOwner( 
   CWnd* pWnd  
);

Parameters

  • pWnd
    A pointer to a CWnd object to set as the owner of the rebar control.

Return Value

A pointer to a CWnd object that is the current owner of the rebar control.

Remarks

Note that this member function uses pointers to CWnd objects for both the current and selected owner of the rebar control, rather than handles to windows.

Note

This member function does not change the actual parent that was set when the control was created; rather it sends notification messages to the window you specify.

Requirements

Header: afxcmn.h

See Also

Reference

CReBarCtrl Class

Hierarchy Chart

Other Resources

CReBarCtrl Members