CFrameWnd::m_hCommandBar

This data member contains the window handle to the frame window's command bar.

HWND m_hCommandBar;

At a Glance

Header File Afxwin.h
Platforms
Versions 1.0 and later

Remarks

Pass this HWND as the hwndCB parameter to any of the global command bar Functions if you need to access them directly. You may want to do this if you're adding more than one combo box, or if you want to insert a command bar element at a particular position in the command bar.

See Also

CFrameWnd Overview, CFrameWnd Data Members, Frame Windows and Splitter Windows, CommandBar_InsertButton, CommandBar_InsertComboBox, CommandBar_InsertMenubar