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

The CExtPropertyGridCtrl class is designed to be a container for other windows making up the property grid control (See Figure 2). It automatically detects the CExtPropertyGridWnd windows inside and aligns them in the central part of the container, which is free of other windows. The property grid control assumes all its windows have unique dialog control identifiers. It also handles the WM_COMMAND messages and updates the UI state of the command items with the identifiers equal to the dialog control identifiers of the grid windows inside the container. This makes it possible to hide and show the CExtPropertyGridWnd windows with the CExtPropertyGridToolBar toolbar commands automatically.