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


#if !defined(AFX_XTPWND_H__DE1DD95C_0BE3_4CEA_B437_7B413D1FC536__INCLUDED_) 
#define AFX_XTPWND_H__DE1DD95C_0BE3_4CEA_B437_7B413D1FC536__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// XTPWnd.h : header file 
// 
 
///////////////////////////////////////////////////////////////////////////// 
/* 
简单研究CDC 
实现透明窗口或放大镜窗口效果 
 
适用于新手上路 
 
awzzz/2002/05/27 
awzzz999@163.com 
*/ 
 
///////////////////////////////////////////////////////////////////////////// 
int XDC2MemDC(CDC *pDC, CDC *pMemDC); 
int XCWnd2MemDC(CWnd *pWnd, CDC *pMemDC); 
CDC *XSaveCWnd(CWnd *pWnd); 
 
///////////////////////////////////////////////////////////////////////////// 
// CXTPWnd window 
 
class AFX_EXT_CLASS CXTPWnd : public CWnd 
{ 
// Construction 
public: 
	CXTPWnd(); 
 
// Attributes 
public: 
	int m_zoom; 
	CDC *m_pMemDC; 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CXTPWnd) 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	void XOwnerDraw(); 
	void XSaveScreen(); 
	void XCreate(LPCTSTR lpszWindowName = "XTPWnd"); 
	virtual ~CXTPWnd(); 
 
	// Generated message map functions 
protected: 
	//{{AFX_MSG(CXTPWnd) 
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point); 
	afx_msg void OnWindowPosChanged(WINDOWPOS FAR* lpwndpos); 
	afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized); 
	afx_msg void OnPaint(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_XTPWND_H__DE1DD95C_0BE3_4CEA_B437_7B413D1FC536__INCLUDED_)