Click here to Skip to main content
15,896,201 members
Articles / Desktop Programming / MFC

A beginning DirectX application using MFC.

Rate me:
Please Sign up or sign in to vote.
4.71/5 (33 votes)
29 Mar 20042 min read 170K   9.9K   49  
Lets user create and manipulate 3D DirectX models.
// Modeler.h : main header file for the MODELER application
//

#if !defined(AFX_MODELER_H__FA3B8DC2_6258_4818_BFAD_B71A987DA920__INCLUDED_)
#define AFX_MODELER_H__FA3B8DC2_6258_4818_BFAD_B71A987DA920__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#ifndef __AFXWIN_H__
	#error include 'stdafx.h' before including this file for PCH
#endif

#include "resource.h"		// main symbols

/////////////////////////////////////////////////////////////////////////////
// CModelerApp:
// See Modeler.cpp for the implementation of this class
//
class CModelerDlg;
class CModelerApp : public CWinApp
{
public:
	CModelerApp();
	CModelerDlg* pDlg;
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CModelerApp)
	public:
	virtual BOOL InitInstance();
	virtual BOOL OnIdle(LONG lCount);
	//}}AFX_VIRTUAL

// Implementation

	//{{AFX_MSG(CModelerApp)
	afx_msg void OnClear();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	void ShowTipAtStartup(void);
private:
	void ShowTipOfTheDay(void);
};

//MOVED ABOUT DIALOG CLASS DEFINITION FROM THE MAIN DIALOG'S .CPP FILE
//TO HERE SO THAT IT COULD ALSO BE CALLED FROM MY TOOLBAR BUTTON AS 
//WELL AS THE SYSTEM MENU--------D.R.
class CAboutDlg : public CDialog
{
public:
	CAboutDlg();

// Dialog Data
	//{{AFX_DATA(CAboutDlg)
	enum { IDD = IDD_ABOUTBOX };
	//}}AFX_DATA

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

// Implementation
protected:
	//{{AFX_MSG(CAboutDlg)
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

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

#endif // !defined(AFX_MODELER_H__FA3B8DC2_6258_4818_BFAD_B71A987DA920__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
United States United States
Started off with vb6 Smile | :) and am self-taught at C++, FoxPro, DirectX, etc. I'm currently developing with VFP9 and C# in desktop apps, webservices, telephony apps.

Comments and Discussions