Partager via


CFrameWnd::GetControlBar

Call GetControlBar to gain access to the control bar that is associated with the ID.

CControlBar* GetControlBar(
   UINT nID 
);

Parameters

  • nID
    The ID number of a control bar.

Return Value

A pointer to the control bar that is associated with the ID.

Remarks

The nID parameter refers to the unique identifier passed to the Create method of the control bar. For more information on control bars, refer to the topic entitled Control Bars.

GetControlBar will return the control bar even if it is floating and thus is not currently a child window of the frame.

Requirements

Header: afxwin.h

See Also

Reference

CFrameWnd Class

Hierarchy Chart

Other Resources

CFrameWnd Members