MainFrm.cpp in snowworld.rar


This is a function used to write the code OPENGL. The role of the code is: to re...Original Link
    Sponsored links

			
// MainFrm.cpp : implementation of the CMainFrame class
//

#include "stdafx.h"
#include "SnowWorld.h"

#include "MainFrm.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CMainFrame

IMPLEMENT_DYNAMIC(CMainFrame, CFrameWnd)

BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd)
	//{{AFX_MSG_MAP(CMainFrame)
		// NOTE - the ClassWizard will add and remove mapping macros here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	ON_WM_CREATE()
	ON_WM_SETFOCUS()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CMainFrame construction/destruction

CMainFrame::CMainFrame()
{
	// TODO: add member initialization code here
	
}

CMainFrame::~CMainFrame()
{
}

int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
	if (CFrameWnd::OnCreate(lpCreateStruct) == -1)
		return -1;
	// create a view to occupy the client area of the frame
	if (!m_wndView.Create(NULL, NULL, AFX_WS_DEFAULT_VIEW,
		CRect(0, 0, 0, 0), this, AFX_IDW_PANE_FIRST, NULL))
	{
		TRACE0("Failed to create view window\n");
		return -1;
	}

	return 0;
}
			

			...
			...
			... to be continued.

  This is a preview. To get the complete source file, 
  please click here to download the whole source code package.

			
			


Project Files

    Sponsored links
NameSizeDate
 ChildView.cpp10.49 kB31-08-06 00:04
 ChildView.h2.35 kB31-08-06 00:00
 <Debug>0.00 B22-07-03 21:03
 MainFrm.cpp2.50 kB20-07-03 17:31
 MainFrm.h1.60 kB20-08-06 00:48
 ReadMe.txt3.51 kB20-08-06 00:48
 SnowFloor.bmp192.05 kB21-12-99 20:20
 SnowLarge.bmp12.05 kB21-12-99 22:25
 SnowMiddle.bmp12.05 kB21-12-99 22:26
 SnowSmall.bmp12.05 kB21-12-99 22:26
 <Data>0.00 B22-07-03 21:03
 Music.WAV112.42 kB03-06-97 05:03
 SnowWorld.ico1.05 kB20-08-06 00:48
 SnowWorld.rc2401.00 B20-08-06 00:48
 <res>0.00 B22-07-03 21:03
 Resource.h657.00 B30-08-06 22:31
 SnowWorld.aps363.21 kB20-07-03 17:30
 SnowWorld.cpp3.82 kB30-08-06 22:21
 SnowWorld.dsp4.35 kB30-08-06 22:51
 SnowWorld.dsw541.00 B20-08-06 00:48
 SnowWorld.h1.37 kB20-08-06 00:48
 SnowWorld.ncb57.00 kB20-07-03 21:35
 SnowWorld.opt54.50 kB20-07-03 21:35
 SnowWorld.plg3.65 kB20-07-03 17:02
 SnowWorld.positions148.00 B22-09-06 08:49
 SnowWorld.rc6.46 kB31-08-06 00:13
 StdAfx.cpp211.00 B20-08-06 00:48
 StdAfx.h1.03 kB20-08-06 00:48
 <SnowWorld>0.00 B22-07-03 21:03
 <snowworld>0.00 B22-07-03 21:03
...

Related Items

    Sponsored links