|
 |
BCGControlBar Pro (MFC) |
 |
BCGSuite (MFC) |
 |
BCGControlBar (Microsoft .NET) |
|
Toolbar combo box buttons |
Support for toolbar combo box buttons is available out-of-the-box. A combo box may have the Office-like flat style and can be drawn using the library Visualization Manager. |
|
Office XP-style combobox:

|
|
classic look:

|
|
Office 2003-style combobox:

|
|
Sample code: |
CBCGToolbarComboBoxButton comboButton (ID_SELECT_ACTIVE_CONFIGURATION,
CImageHash::GetImageOfCommand (ID_SELECT_ACTIVE_CONFIGURATION, FALSE),
CBS_DROPDOWNLIST);
comboButton.AddItem (_T("Win32 Debug"));
comboButton.AddItem (_T("Win32 Release"));
comboButton.SelectItem (0);
m_wndToolbar.ReplaceButton (ID_SELECT_ACTIVE_CONFIGURATION, comboButton);
|
|
|
Prev
Next |