HRESULT AddField(LPCWSTR fieldName, int controlId, BOOL suppressLog, DialogControlTypes type)
Add a control mapping between the name in a Field element of the .config XML file and the control ID in your page’s dialog box, as shown in Table 32. You must call this method before the call to InitFields, because InitFields uses this information. This method always returns S_OK.
Table 32. HRESULT AddField
Parameter |
Description |
Fieldname |
Name of the field as it appears in your page’s XML |
controlId |
The ID of the control in your page’s dialog box template |
suppressLog |
Set to TRUE if you do not want the values from this field written to the log file; always set this parameter to TRUE for password or PIN fields |
Type |
The type of control, which is one of the following: §CONTROL_STATIC_TEXT · CONTROL_COMBO_BOX · CONTROL_LIST_VIEW · CONTROL_PROGRESS_BAR · CONTROL_GENERIC · CONTROL_RADIO_BUTTON · CONTROL_CHECK_BOX · CONTROL_TREE_VIEW |
Related Topics