Property grid combo box

Professional User Interface Suite, Copyright FOSS Software Inc. Help Published with Permission.

The CExtPropertyGridComboBoxBar class implements the combo box at the top of the property grid control. Each item in the combo box corresponds to a property store. The item text is the display name of the property store. When the selected item is changed, the content of all the grids in the property grid control is reinitialized from the content of the newly selected property store.

The property grid combo box can be hidden or shown with the following code:

CExtPropertyGridComboBoxBar * pWnd =
    STATIC_DOWNCAST(
        CExtPropertyGridComboBoxBar,
        m_PGC.GetChildByRTC(
            RUNTIME_CLASS(CExtPropertyGridComboBoxBar)
            )
        );
if( pWnd == NULL )
    return;
pWnd->ShowWindow( SW_HIDE ); // or SW_SHOW
m_PGC.RecalcLayout(); 
// obligatory to call this method of the property grid