|
const CString& sCaption, int nType = tps_item_node, UINT nIDTemplate = ((UINT)-1), const CString& sCaptionDescr = CString(""), CDialog *pDlg = NULL); |
sCaption | The caption of this item. Appears in the tree control and as main dialog caption (if pWnd!=NULL) | ||||||
nType |
The type of this item. Can be one of these values:
| ||||||
nIDTemplate | Contains the ID number of a dialog-box template resource. | ||||||
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. | ||||||
pDlg |
Contains a CDialog derivated class for this dialog, for example to
do the DDX/DDV handling. If NULL, a standard CDialog is used. |
(code) | |
AddPage("Main preferences",tps_item_branch); | |
AddPage("Directories",tps_item_node); | |
AddPage("User information",tps_item_node); | |
AddPage("Plugins",tps_item_endbranch); | |
AddPage("Security",tps_item_node); |