home *** CD-ROM | disk | FTP | other *** search
/ 3D Graphics Programming for Windows 95 / 3D_Graphics_Programming_for_Windows_95_Microsoft_1996.iso / samples / blobs / mainfrm.h < prev    next >
C/C++ Source or Header  |  1996-03-25  |  2KB  |  76 lines

  1. // MainFrm.h : interface of the CMainFrame class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CTransformDlg;
  6.  
  7. class CMainFrame : public CFrameWnd
  8. {
  9. public:
  10.     CMainFrame();
  11.     DECLARE_DYNCREATE(CMainFrame)
  12.  
  13. // Attributes
  14. public:
  15.     C3dWnd        m_wnd3d;
  16.     C3dScene* m_pScene;
  17.     C3dController* m_pController;
  18.  
  19. // Operations
  20. public:
  21.     BOOL NewScene();
  22.     BOOL OpenFile(const char* pszFile);
  23.     void Status(const char* pszFormat, ...);
  24.  
  25.  
  26.  
  27. // Overrides
  28.     // ClassWizard generated virtual function overrides
  29.     //{{AFX_VIRTUAL(CMainFrame)
  30.     public:
  31.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  32.     virtual void RecalcLayout(BOOL bNotify = TRUE);
  33.     //}}AFX_VIRTUAL
  34.  
  35. // Implementation
  36. public:
  37.     virtual ~CMainFrame();
  38. #ifdef _DEBUG
  39.     virtual void AssertValid() const;
  40.     virtual void Dump(CDumpContext& dc) const;
  41. #endif
  42.  
  43. protected:  // control bar embedded members
  44.     CStatusBar  m_wndStatusBar;
  45.     CToolBar    m_wndToolBar;
  46.     int m_iControlObj;
  47.     int m_iControlType;
  48.     int m_iObjCtrlDev;
  49.     CRect m_rcWnd;
  50.     C3dShape* m_pCurShape;
  51.  
  52.     static C3dFrame* CALLBACK OnGetCtrlFrame(void* pArg);
  53.     void SaveSettings();
  54.     void RestoreSettings();
  55.     static void CALLBACK OnSelChange(C3dShape* pShape, CPoint pt, void* pArg);
  56.     void AddBlob(C3dShape* pShape, C3dVector& v);
  57.  
  58. // Generated message map functions
  59. protected:
  60.     //{{AFX_MSG(CMainFrame)
  61.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  62.     afx_msg void OnDestroy();
  63.     afx_msg void OnActivateApp(BOOL bActive, HTASK hTask);
  64.     afx_msg void OnPaletteChanged(CWnd* pFocusWnd);
  65.     afx_msg void OnMove(int x, int y);
  66.     afx_msg void OnFileNew();
  67.     afx_msg void OnSetFocus(CWnd* pOldWnd);
  68.     afx_msg void OnEditControl();
  69.     afx_msg void OnUpdateEditControl(CCmdUI* pCmdUI);
  70.     afx_msg void OnEditInputdev();
  71.     //}}AFX_MSG
  72.     DECLARE_MESSAGE_MAP()
  73. };
  74.  
  75. /////////////////////////////////////////////////////////////////////////////
  76.