www.pudn.com > 《MFC Windows程序设计(第二版)》.rar > ChildView.h, change:1998-10-06,size:1733b


// ChildView.h : interface of the CChildView class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_CHILDVIEW_H__1B036BEE_5C6F_11D2_8E53_006008A82731__INCLUDED_) 
#define AFX_CHILDVIEW_H__1B036BEE_5C6F_11D2_8E53_006008A82731__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
///////////////////////////////////////////////////////////////////////////// 
// CChildView window 
 
class CChildView : public CWnd 
{ 
// Construction 
public: 
	CChildView(); 
 
// Attributes 
public: 
	static const COLORREF m_clrColors[5]; 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CChildView) 
	protected: 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	virtual ~CChildView(); 
 
	// Generated message map functions 
protected: 
	int m_nColor; 
	int m_nShape; 
	//{{AFX_MSG(CChildView) 
	afx_msg void OnPaint(); 
	afx_msg void OnShapeCircle(); 
	afx_msg void OnShapeTriangle(); 
	afx_msg void OnShapeSquare(); 
	afx_msg void OnUpdateShapeCircle(CCmdUI* pCmdUI); 
	afx_msg void OnUpdateShapeTriangle(CCmdUI* pCmdUI); 
	afx_msg void OnUpdateShapeSquare(CCmdUI* pCmdUI); 
	afx_msg void OnContextMenu(CWnd* pWnd, CPoint point); 
	//}}AFX_MSG 
	afx_msg void OnColor (UINT nID); 
	afx_msg void OnUpdateColor (CCmdUI* pCmdUI); 
	DECLARE_MESSAGE_MAP() 
}; 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_CHILDVIEW_H__1B036BEE_5C6F_11D2_8E53_006008A82731__INCLUDED_)