Skip to content

Latest commit

 

History

History
115 lines (72 loc) · 3.41 KB

cmultipagedhtmldialog-class.md

File metadata and controls

115 lines (72 loc) · 3.41 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: CMultiPageDHtmlDialog Class
CMultiPageDHtmlDialog Class
03/27/2019
CMultiPageDHtmlDialog
AFXDHTML/CMultiPageDHtmlDialog
AFXDHTML/CMultiPageDHtmlDialog::CMultiPageDHtmlDialog
CMultiPageDHtmlDialog [MFC], CMultiPageDHtmlDialog
971accc1-824d-4df4-b4c1-b1a20e0f7e4f

CMultiPageDHtmlDialog Class

A multipage dialog displays multiple HTML pages sequentially and handles the events from each page.

Syntax

class CMultiPageDHtmlDialog : public CDHtmlDialog

Members

Public Constructors

Name Description
CMultiPageDHtmlDialog::CMultiPageDHtmlDialog Constructs a multipage (wizard-style) DHTML dialog object.
CMultiPageDHtmlDialog::~CMultiPageDHtmlDialog Destroys a multipage DHTML dialog object.

Remarks

The mechanism for doing this is a DHTML and URL event map, which contains embedded event maps for each page.

Example

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]

Inheritance Hierarchy

CObject

CDHtmlSinkHandlerBase2

CDHtmlSinkHandlerBase1

CCmdTarget

CDHtmlSinkHandler

CWnd

CDHtmlEventSink

CDialog

CDHtmlDialog

CMultiPageDHtmlDialog

Requirements

Header: afxdhtml.h

CMultiPageDHtmlDialog::CMultiPageDHtmlDialog

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();

Parameters

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.

CMultiPageDHtmlDialog::~CMultiPageDHtmlDialog

Destroys a multipage DHTML dialog object.

virtual ~CMultiPageDHtmlDialog();

See also

CDHtmlDialog Class