MainFrm.cpp
上传用户:cncdtg88
上传日期:2013-03-14
资源大小:10474k
文件大小:2k
- // MainFrm.cpp : implementation of the CMainFrame class
- //
- #include "stdafx.h"
- #include "start.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)
- ON_WM_PAINT()
- // NOTE - the ClassWizard will add and remove mapping macros here.
- // DO NOT EDIT what you see in these blocks of generated code !
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CMainFrame construction/destruction
- CMainFrame::CMainFrame()
- {
- // TODO: add member initialization code here
-
- }
- CMainFrame::~CMainFrame()
- {
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMainFrame message handlers
- void CMainFrame::OnPaint()
- {
- CPaintDC dc(this); // device context for painting
-
- //**** 3DSTATE CODE ****
- //******* BEGIN *******
- // This function puts the image
- // seen from the default camera on the window.
- // You can call the STATE_engine_render function for
- // every window, you can also use (HWND)(this)
- // as a handle to the current window.
- STATE_engine_render(m_hWnd, NULL);
- Sleep(1); //This is a small world , so lets slow it down a little
-
- // **** 3DSTATE CODE ****
- // ******** END ********
- }