|
int nType, CPropertyPage* pPage, LPCTSTR lpszCaptionDescr=_T("") ); |
nType | The type of this item. Can be one of these values:
|
||||||
pPage | Points to the 'CPropertyPage' template this item is associated with. | ||||||
sCaptionDescr | Defines an additional description to the main caption of this item. This is only shown if the dialog belonging to this item is currently selected. |
This method has been modified to fit into the scheme
of using the 'CPropertySheet'/ 'CPropertyPage'
approach. In the former version, you had to pass a caption text 'sCaption',
a template ID 'nIDTemplate', and a pointer to a dialog template 'pDlg'.
In this version, the caption text 'sCaption' is taken from the property pages'
caption. The 'nIDTemplate' is useless as you now must specify the property page
belonging to each item, also the 'pDlg' pointer.
It shouldn't take many changes to modify 'CDialog' pages to 'CPropertyPage's
as they are almost identical, and it cleans up with many workarounds the previous
version required :)
(code) | |
AddPage(tps_item_branch,&cMainPrefsPage); | |
AddPage(tps_item_node,&cDirectoriesPage); | |
AddPage(tps_item_node, &cUserPage); | |
AddPage(tps_item_endbranch, &cPluginPage); | |
AddPage(tps_item_node, &cSecurityPage); |