The property pages are now allocated from stack
and not from the heap:
(Former version)
CDialog *pPage=new CPrefsPage();
AddPage( ..., pPage);
(This version)
CPrefsPage cPage;
AddPage(...,&cPage);
The layout capabilities are unchanged with one minor change: The default property sheet buttons (OK,Apply,Cancel,Help) are now used instead of creating them explicitly. You can change this behavior to stay the same like in the old version using 'm_bDisableStandardButtons'.
As CPropertySheet is now used as the base class,
you can directly migrate your property sheets without many modifications.
Also, the OnKillActive/OnSetActive/... notifications behave exactly like
in the standard property sheet.
m_nSpaceTop | Defines the space between the upper border of the tree control to the upper extra control pane. |
m_nSpaceBottom | Defines the space between the bottom border of the tree control to the bottom extra control pane. |
m_nSpaceLeft | Defines the space between the left border of the tree control to the left window border. |
m_nSpaceRight | Defines the space between the right border of the dialog area to the right window border. |
m_nSpaceMid | Defines the space between the right border of the tree control to the left border of the dialog. |
m_nCaptionHeight | Defines the height of the dialog caption bar. |
m_nCaptionBorder | Defines the style of the dialog caption bar border. |
m_bSpecialCaption | How the dialog caption bar should be displayed. |
m_clrCaptionLeft | The background color of the dialog caption bar(left side). |
m_clrCaptionRight | The background color of the dialog caption bar(right side). |
m_clrCaptionTextLeft | The text color of the main caption(left). |
m_clrCaptionTextRight | The text color of the sub caption(right). |
m_clrCaptionBorderTopLeft | The color of the dialog caption bar border in the upper left corner. |
m_clrCaptionBorderBottomRight | The color of the dialog caption bar border in the bottom right corner. |
m_bDisableStandardButtons | Set this to TRUE to imitate the behavior of the old version of this tree property sheet control. |
CTreePropertySheet | Constructs a CTreePropertySheet object. |
DoModal | Calls a modal CTreePropertySheet and returns when done. |
AddPage | Adds a dialog to the CTreePropertySheet. (modified since last version) |
InsertExtraControl | Adds a custom defined control to the CTreePropertySheet. |
InsertExtraSpace | Adds a empty space filling pane to the CTreePropertySheet. Useful for alignment of the extra controls. |
SetExtraRowSpace | Sets the upper and lower empty space of a row of extra controls. |
SetLikeNetscape | Sets the look of the CTreePropertySheet like the property sheet of Netscape Communicator 4.0. |
SetSimple | Sets a simple 'standard' look. |