Export (0) Print
Expand All
TRY
Expand Minimize

BEGIN_DHTML_URL_EVENT_MAP

Starts the definition of a DHTML and URL event map in a multipage dialog.

BEGIN_DHTML_URL_EVENT_MAP( )

Remarks

Put BEGIN_DHTML_URL_EVENT_MAP in the implementation file of your CMultiPageDHtmlDialog-derived class. Follow it with embedded DHTML event maps and URL entries, and then close it with END_DHTML_URL_EVENT_MAP. Include the DECLARE_DHTML_URL_EVENT_MAP macro within the class definition.

Example

// Somewhere in CMyMultiPageDlg.cpp:
BEGIN_DHTML_URL_EVENT_MAP( CMyMultiPageDlg )
   // Define event map for "Page1" ( see URL_EVENT_ENTRY below )
   BEGIN_EMBED_DHTML_EVENT_MAP( CMyMultiPageDlg, Page1 )
      DHTML_EVENT_ONCLICK( _T( "Next" ), OnPage1Next )
   END_EMBED_DHTML_EVENT_MAP( )
   // Define event map for events from "Page2"
   BEGIN_EMBED_DHTML_EVENT_MAP( CMyMultiPageDlg, Page2 )
      DHTML_EVENT_ONCLICK( _T( "Back" ), OnPage2Back )
      DHTML_EVENT_ONCLICK( _T( "Next" ), OnPage2Next )
   END_EMBED_DHTML_EVENT_MAP( )
   BEGIN_URL_ENTRIES( CMyMultiPageDlg )
      // Map "Page1" to HTML resource 131
      URL_EVENT_ENTRY( CMyMultiPageDlg, _T( "131" ), Page1 )
      // Map "Page2" to HTML resource 132
      URL_EVENT_ENTRY( CMyMultiPageDlg, _T( "132" ), Page2 )
   END_URL_ENTRIES( )
END_DHTML_URL_EVENT_MAP( CMyMultiPageDlg )

See Also

MFC Macros and Globals | Multipage DHTML and URL Event Maps

Show:
© 2014 Microsoft