description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||||
---|---|---|---|---|---|---|---|---|---|
Learn more about: CMultiPageDHtmlDialog Class |
CMultiPageDHtmlDialog Class |
03/27/2019 |
|
|
971accc1-824d-4df4-b4c1-b1a20e0f7e4f |
A multipage dialog displays multiple HTML pages sequentially and handles the events from each page.
class CMultiPageDHtmlDialog : public CDHtmlDialog
Name | Description |
---|---|
CMultiPageDHtmlDialog::CMultiPageDHtmlDialog | Constructs a multipage (wizard-style) DHTML dialog object. |
CMultiPageDHtmlDialog::~CMultiPageDHtmlDialog | Destroys a multipage DHTML dialog object. |
The mechanism for doing this is a DHTML and URL event map, which contains embedded event maps for each page.
This multipage dialog assumes three HTML resources that define simple wizard-like functionality. The first page has a Next button, the second a Prev and Next button, and the third a Prev button. When one of the buttons is pressed, a handler function calls CDHtmlDialog::LoadFromResource to load the appropriate new page.
The pertinent parts of the class declaration (in CMyMultiPageDlg.h):
[!code-cppNVC_MFCDocView#181]
The pertinent parts of the class implementation (in CMyMultipageDlg.cpp):
[!code-cppNVC_MFCDocView#182]
CDHtmlSinkHandlerBase2
CDHtmlSinkHandlerBase1
CDHtmlSinkHandler
CDHtmlEventSink
CMultiPageDHtmlDialog
Header: afxdhtml.h
Constructs a multipage (wizard-style) DHTML dialog object.
CMultiPageDHtmlDialog(
LPCTSTR lpszTemplateName,
LPCTSTR szHtmlResID = NULL,
CWnd* pParentWnd = NULL);
CMultiPageDHtmlDialog(
UINT nIDTemplate,
UINT nHtmlResID = 0,
CWnd* pParentWnd = NULL);
CMultiPageDHtmlDialog();
lpszTemplateName
The null-terminated string that is the name of a dialog-box template resource.
szHtmlResID
The null-terminated string that is the name of an HTML resource.
pParentWnd
A pointer to the parent or owner window object (of type CWnd) to which the dialog object belongs. If it is NULL, the dialog object's parent window is set to the main application window.
nIDTemplate
Contains the ID number of a dialog-box template resource.
nHtmlResID
Contains the ID number of an HTML resource.
Destroys a multipage DHTML dialog object.
virtual ~CMultiPageDHtmlDialog();