Microsoft Deployment Toolkit
Documentation Library HRESULT GetControlWrapper(int itemId, DialogControlTypes controlType, IUnknown **ppControl) |
The UDI Wizard uses wrappers, which are really façades for interacting with the controls on your page. Using these façades instead of the actual controls makes it much easier to write tests for your page, because you can provide mock façades from your tests.
Instead of using this method directly, it is better to use the GetControlWrapper template method, which is strongly typed—for example:
PComboBox m_pLanguagePackCombo;
GetControlWrapper(View(), IDC_MY_COMBO, CONTROL_COMBO_BOX, &m_pCombo);
Related Topics