Click here to Skip to main content
15,893,588 members
Articles / Web Development / HTML

Creating Web-style GUI in MFC applications

Rate me:
Please Sign up or sign in to vote.
4.85/5 (41 votes)
13 Jul 20049 min read 279.7K   11.1K   247  
Creating Web-style GUI and easily managing it from MFC code. Creating dialogs based on DHTML, receiving events from DHTML to MFC, and calling JScript functions from MFC.
#if !defined(AFX_DLG2_H__88FFE235_8508_4EB3_8574_C34FE51F8DC2__INCLUDED_)
#define AFX_DLG2_H__88FFE235_8508_4EB3_8574_C34FE51F8DC2__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Dlg2.h : header file
//


#include "HtmlDialog.h"

/////////////////////////////////////////////////////////////////////////////
// This is "Switcher Dialog" (IDR_HTML3)
//   IDR_HTML3 passed to CHtmlDialog in contructor CDlg2
//

class CDlg2 : public CHtmlDialog
{
// Construction
public:
	CDlg2(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CDlg2)
	enum { IDD = IDD_DIALOG1 };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDlg2)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CDlg2)
		// NOTE: the ClassWizard will add member functions here
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DLG2_H__88FFE235_8508_4EB3_8574_C34FE51F8DC2__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Moldova (Republic of) Moldova (Republic of)
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions