Click here to Skip to main content
15,860,859 members
Articles / Multimedia / OpenGL

OpenGL Win32 AppWizard

Rate me:
Please Sign up or sign in to vote.
4.97/5 (45 votes)
19 May 20033 min read 483.2K   22.7K   115  
This Custom AppWizard for VC++ 6.0 or VC++.NET creates an OpenGL enabled Win32 application suitable for demos and simple games.
#if !defined(AFX_CSTM1DLG_H__9415FB35_666B_11D5_AA62_0002E3044019__INCLUDED_)
#define AFX_CSTM1DLG_H__9415FB35_666B_11D5_AA62_0002E3044019__INCLUDED_

// cstm1dlg.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CCustom1Dlg dialog

class CCustom1Dlg : public CAppWizStepDlg
{
// Construction
public:
	void UpdateCmd();
	CCustom1Dlg();
	virtual BOOL OnDismiss();
	COLORREF m_clBack;

// Dialog Data
	//{{AFX_DATA(CCustom1Dlg)
	enum { IDD = IDD_CUSTOM1 };
	CComboBox	m_cboDepthBits;
	CComboBox	m_cboColorBits;
	CStatic	m_wndBgColor;
	BOOL	m_bAbout;
	BOOL	m_bAccel;
	BOOL	m_bFPS;
	BOOL	m_bMenu;
	BOOL	m_bSample;
	BOOL	m_bUseOgl;
	BOOL	m_bDblBuf;
	//}}AFX_DATA


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

// Implementation
protected:
	// Generated message map functions
	//{{AFX_MSG(CCustom1Dlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnChkUseogl();
	afx_msg void OnOptionClick();
	afx_msg void OnBtncolor();
	afx_msg void OnPaint();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};


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

#endif // !defined(AFX_CSTM1DLG_H__9415FB35_666B_11D5_AA62_0002E3044019__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
Sweden Sweden
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions