home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
3D Graphics Programming for Windows 95
/
3D_Graphics_Programming_for_Windows_95_Microsoft_1996.iso
/
samples
/
clock
/
mainfrm.h
< prev
next >
Wrap
C/C++ Source or Header
|
1996-03-11
|
1KB
|
57 lines
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////
class CMainFrame : public CFrameWnd
{
public:
CMainFrame();
DECLARE_DYNCREATE(CMainFrame)
// Attributes
public:
C3dWnd m_wnd3d;
C3dScene* m_pScene;
// Operations
public:
BOOL SetScene();
BOOL OpenFile(const char* pszFile);
BOOL Update(double d);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMainFrame)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual void RecalcLayout(BOOL bNotify = TRUE);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CMainFrame();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected: // control bar embedded members
CStatusBar m_wndStatusBar;
CToolBar m_wndToolBar;
C3dVector m_vCamera;
double m_dRadius;
// Generated message map functions
protected:
//{{AFX_MSG(CMainFrame)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnDestroy();
afx_msg void OnActivateApp(BOOL bActive, HTASK hTask);
afx_msg void OnPaletteChanged(CWnd* pFocusWnd);
afx_msg void OnMove(int x, int y);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////