www.pudn.com > OpenGL实现三维绘图.rar > ControlWnd.h


#if !defined(AFX_CONTROLWND_H__C2C40E5D_B598_49A3_8717_4C215A4C5A05__INCLUDED_) 
#define AFX_CONTROLWND_H__C2C40E5D_B598_49A3_8717_4C215A4C5A05__INCLUDED_ 
 
#include "MainFrm.h" 
#include "WBButton.h" 
#include "XTPWnd.h" 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// ControlWnd.h : header file 
// 
 
///////////////////////////////////////////////////////////////////////////// 
// CControlWnd form view 
 
#ifndef __AFXEXT_H__ 
#include  
#endif 
 
class CPicDataWnd; 
class CControlWnd : public CFormView 
{ 
protected: 
	CControlWnd();           // protected constructor used by dynamic creation 
	DECLARE_DYNCREATE(CControlWnd) 
	CMainFrame *m_pFr;		//主框架的指针 
	bool m_bXpWnd;          //放大镜是否已启用 
	CXTPWnd *pWnd;// 
//	CPicDataWnd *m_pDataWnd; 
// Form Data 
public: 
	//{{AFX_DATA(CControlWnd) 
	enum { IDD = IDD_CONTROLDLG }; 
	CWBButton	m_ZoomBack; 
	CWBButton	m_ZoomDel; 
	CWBButton	m_ZoomAdd; 
	CWBButton	m_ShowXpWnd; 
	CWBButton	m_ShowDataWnd; 
	CEdit	m_Minrange; 
	CEdit	m_Maxrange; 
	CWBButton	m_Clearbtn; 
	CWBButton	m_Viewpicbtn; 
	CWBButton	m_SetDefaultbtn; 
	CWBButton	m_GetDatabtn; 
	CListBox	m_PicValue; 
	CListBox	m_AllValue; 
	CEdit	m_zZoom; 
	CEdit	m_yZoom; 
	CEdit	m_xZoom; 
	int		m_nxZoom; 
	int		m_nyZoom; 
	int		m_nzZoom; 
	GLfloat	m_nMaxrange; 
	GLfloat	m_nMinrange; 
	//}}AFX_DATA 
// Attributes 
public: 
	bool m_bShowCoordinate;//是否显示坐标系统 
	bool m_bShowConsult;   //是否显示参照矩形 
// Operations 
public: 
	void GetData(LPARAM lp, WPARAM wp); 
	void DisableButton(LPARAM lp, WPARAM wp); 
	void EnableButton(LPARAM lp,WPARAM wp); 
	int GetPicData(CString Name); 
	void FillListBox(); 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CControlWnd) 
	public: 
	virtual void OnInitialUpdate(); 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
	virtual ~CControlWnd(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
	// Generated message map functions 
	//{{AFX_MSG(CControlWnd) 
	afx_msg void OnCancel() {return;}; 
	afx_msg void OnOK() {return;}; 
	afx_msg void OnViewpic(); 
	afx_msg void OnDblclkAllvalue(); 
	afx_msg void OnDblclkPicvalue(); 
	afx_msg void OnSetdefault(); 
	afx_msg void OnRadioturn(); 
	afx_msg void OnRadioselect(); 
	afx_msg void OnGetdata(); 
	afx_msg void OnClearData(); 
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor); 
	afx_msg void OnShowdatawnd(); 
	afx_msg void OnCheckconsult(); 
	afx_msg void OnCheckcooldinate(); 
	afx_msg void OnRadioturnx(); 
	afx_msg void OnRadioturny(); 
	afx_msg void OnRadioturnz(); 
	afx_msg void OnShowTpWnd(); 
	afx_msg void OnZoomAdd(); 
	afx_msg void OnZoomdel(); 
	afx_msg void OnZoomback(); 
	afx_msg void OnChecklighting(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_CONTROLWND_H__C2C40E5D_B598_49A3_8717_4C215A4C5A05__INCLUDED_)