3DHelperDemoDlg.h
上传用户:qzpk666
上传日期:2022-08-04
资源大小:59k
文件大小:2k
源码类别:

对话框与窗口

开发平台:

Visual C++

  1. // 3DHelperDemoDlg.h : header file
  2. //
  3. #if !defined(AFX_3DHELPERDEMODLG_H__F5D7B078_9932_46B1_BB67_6E611672AE4F__INCLUDED_)
  4. #define AFX_3DHELPERDEMODLG_H__F5D7B078_9932_46B1_BB67_6E611672AE4F__INCLUDED_
  5. #include "MF3DHelper.h" // Added by ClassView
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CMy3DHelperDemoDlg dialog
  11. typedef struct _DATA3D_{
  12. NeHe::VECTOR3D s3D;
  13. int x;
  14. int y;
  15. } DATA3D;
  16. class CMy3DHelperDemoDlg : public CDialog
  17. {
  18. // Construction
  19. public:
  20. CMy3DHelperDemoDlg(CWnd* pParent = NULL); // standard constructor
  21. // Dialog Data
  22. //{{AFX_DATA(CMy3DHelperDemoDlg)
  23. enum { IDD = IDD_MY3DHELPERDEMO_DIALOG };
  24. CButton m_ctrlAxes;
  25. CButton m_ctrlCoordinates;
  26. CButton m_ctrlVisibilityCube;
  27. //}}AFX_DATA
  28. // ClassWizard generated virtual function overrides
  29. //{{AFX_VIRTUAL(CMy3DHelperDemoDlg)
  30. protected:
  31. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  32. //}}AFX_VIRTUAL
  33. // Implementation
  34. protected:
  35. HICON m_hIcon;
  36. // Generated message map functions
  37. //{{AFX_MSG(CMy3DHelperDemoDlg)
  38. virtual BOOL OnInitDialog();
  39. afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  40. afx_msg void OnPaint();
  41. afx_msg HCURSOR OnQueryDragIcon();
  42. afx_msg void OnTimer(UINT nIDEvent);
  43. virtual void OnOK();
  44. virtual void OnCancel();
  45. afx_msg void OnCheckVisibilityCube();
  46. //}}AFX_MSG
  47. DECLARE_MESSAGE_MAP()
  48. private:
  49. void cleanup();
  50. void initialize();
  51. void redraw();
  52. CMF3DHelper m_c3DHelper;
  53. DATA3D *m_pVectorData;
  54. int   m_iCurrAngle;
  55. int   m_iXSize;
  56. int   m_iYSize;
  57. };
  58. //{{AFX_INSERT_LOCATION}}
  59. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  60. #endif // !defined(AFX_3DHELPERDEMODLG_H__F5D7B078_9932_46B1_BB67_6E611672AE4F__INCLUDED_)