www.pudn.com > showstr.rar > PrintWnd1.h


#if !defined(AFX_PRINTWND1_H__668E03DD_7C3C_427B_B5D1_8ED5DD1268BF__INCLUDED_) 
#define AFX_PRINTWND1_H__668E03DD_7C3C_427B_B5D1_8ED5DD1268BF__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// PrintWnd1.h : header file 
// 
 
///////////////////////////////////////////////////////////////////////////// 
// CPrintWnd window 
 
class CPrintWnd : public CWnd 
{ 
// Construction 
public: 
	CPrintWnd(); 
 
// Attributes 
public: 
	BOOL CreateWndEx(CWnd* pParent); 
	 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CPrintWnd) 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	void ShowString(char *_str); 
	virtual ~CPrintWnd(); 
 
private: 
	CFont m_font; 
	int m_count; 
	CString m_str; 
	// Generated message map functions 
protected: 
	void GetDrawRect(CWnd *pWnd,CString str,CRect &rect,UINT style =  
		DT_WORDBREAK|DT_CENTER|DT_VCENTER|DT_EXTERNALLEADING); 
	void DrawStr(CDC *pDC,const CRect &_rect,CString &_str,UINT style = 
		DT_WORDBREAK|DT_CENTER|DT_VCENTER|DT_EXTERNALLEADING); 
	//{{AFX_MSG(CPrintWnd) 
	afx_msg UINT OnNcHitTest(CPoint point); 
	afx_msg void OnPaint(); 
	afx_msg void OnTimer(UINT nIDEvent); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_PRINTWND1_H__668E03DD_7C3C_427B_B5D1_8ED5DD1268BF__INCLUDED_)