📄 objectpropertydlg.h
字号:
#if !defined(AFX_OBJECTPROPERTYDLG_H__FF0F77B5_F2A8_4C73_98D2_C6425819E14B__INCLUDED_)
#define AFX_OBJECTPROPERTYDLG_H__FF0F77B5_F2A8_4C73_98D2_C6425819E14B__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ObjectPropertyDlg.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CObjectPropertyDlg dialog
#include <gl/gl.h>
#include <gl/glu.h>
class C3DObject;
class CEdgeList;
class CObjectPropertyDlg : public CDialog
{
// Construction
public:
CObjectPropertyDlg(CWnd* pParent = NULL); // standard constructor
~CObjectPropertyDlg();
BOOL InitGL();
void CloseGL();
void Render();
BOOL SetupPixelFormat(CDC* pDC);
BOOL CreateQuadricObject();
HGLRC m_hGLContext;
GLUquadricObj* m_pQuadObj;
int m_nType;
float m_fDepth;
float m_fRotate;
CRect m_Rect;
CEdgeList* m_pList;
C3DObject* m_pObject;
// Dialog Data
//{{AFX_DATA(CObjectPropertyDlg)
enum { IDD = IDD_GL_DLG };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CObjectPropertyDlg)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CObjectPropertyDlg)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnDestroy();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnPaint();
virtual BOOL OnInitDialog();
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
afx_msg void OnPlane();
afx_msg void OnCylinder();
afx_msg void OnSphere();
afx_msg void OnSetDepth();
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnEllipsoid();
afx_msg void OnChangeSlider(WPARAM wParam,LPARAM lParam);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_OBJECTPROPERTYDLG_H__FF0F77B5_F2A8_4C73_98D2_C6425819E14B__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -