共用方式為


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*.*

注意

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

Concepts

COccManager Class

COccManager Members

Hierarchy Chart

COccManager::PostCreateDialog

COccManager::PreCreateDialog