Share via


COccManager::SplitDialogTemplate

Called by the framework to split the ActiveX controls from common dialog controls.

virtual DLGTEMPLATE* SplitDialogTemplate( 
   const DLGTEMPLATE* pTemplate, 
   DLGITEMTEMPLATE** ppOleDlgItems  
);

Parameters

  • pTemplate
    A pointer to the dialog template to be examined.

  • ppOleDlgItems
    A list of pointers to dialog box items that are ActiveX controls.

Return Value

A pointer to a dialog template structure containing only non-ActiveX controls. If no ActiveX controls are present, NULL is returned.

Remarks

If any ActiveX controls are found, the template is analyzed and a new template, containing only non-ActiveX controls, is created. Any ActiveX controls found during this process are added to ppOleDlgItems.

If there are no ActiveX controls in the template, NULL is returned*.*

Note

Memory allocated for the new template is freed in the PostCreateDialog function.

Override this function to customize this process.

Requirements

Header: afxocc.h

See Also

Reference

COccManager Class

Hierarchy Chart

COccManager::PostCreateDialog

COccManager::PreCreateDialog