Click here to Skip to main content
15,892,298 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 169.9K   9.9K   49  
Lets user create and manipulate 3D DirectX models.
#if !defined(AFX_CYLINDERDLG_H__0AA60591_3478_42AC_B8CC_592CB1FFF07E__INCLUDED_)
#define AFX_CYLINDERDLG_H__0AA60591_3478_42AC_B8CC_592CB1FFF07E__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CCylinderDlg dialog

class CCylinderDlg : public CDialog
{
// Construction
public:
	CCylinderDlg(float length, float radius, float radius2, UINT slices, UINT stacks
		,CWnd* pParent = NULL);
	CCylinderDlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CCylinderDlg)
	enum { IDD = IDD_CYLINDER };
	float	m_Length;
	float	m_Radius;
	float	m_Radius2;
	UINT	m_Slices;
	UINT	m_Stacks;
	//}}AFX_DATA


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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CCylinderDlg)
		// 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_CYLINDERDLG_H__0AA60591_3478_42AC_B8CC_592CB1FFF07E__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