CFrameWnd::m_hCommandBar

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

At a Glance

Header file: Afxwin.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 1.0 and later

Syntax

HWND m_hCommandBar;

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 are 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

CommandBar_InsertButton, CommandBar_InsertComboBox, CommandBar_InsertMenubar