Property grid toolbar

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

The CExtPropertyGridToolBar class implements the built-in toolbar window in the property grid control. It automatically initializes toolbar buttons which correspond to the tree grid windows created in the property grid control by default, which are controlled by the CExtPropertyGridCategorized and CExtPropertyGridSorted classes.

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

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