www.pudn.com > WBDraw.rar > MyWnd.h


#if !defined(AFX_MYWND_H__AC7CB5CC_26DB_405B_AA59_7754709EEE3E__INCLUDED_) 
#define AFX_MYWND_H__AC7CB5CC_26DB_405B_AA59_7754709EEE3E__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// MyWnd.h : header file 
// 
 
///////////////////////////////////////////////////////////////////////////// 
// MyWnd window 
 
#include "ToolBarEx.h" 
#include "packet.h" 
#include "EditText.h" 
#include  
using namespace std; 
typedef vector PtrArray; 
 
class MyWnd : public CWnd  
{ 
// Construction 
public: 
	MyWnd(); 
 
	void SaveWB(); 
	void DrawMsg(long m_SendMsg, short m_nLen); 
	void RegCallBackFun(WBCallBackInterface *pCallBack); 
 
// Attributes 
public: 
	CDC *			 hdc; 
	CEditText		 m_DEdit; 
	BOOL			 m_bShowEdit; 
	BOOL	    	 bFlag,m_bRun; 
	HBITMAP			 m_hBitmap; 
	CWritePacket	 m_wrtPacket; 
	COLORREF		 m_mycolor,m_colors; 
    RECT			 m_ClientRect; 
    HDC				 m_hMemDC,hScrDC,hMemDC; 
    CPoint			 m_oldpoint,m_StartPoint; 
	WBCallBackInterface * g_pCallBackInterface; 
					 
	HPEN			 m_hPen; 
	HBRUSH			 m_hBrush; 
	int				 m_PenWidth,m_nMouseMode,m_nIconMode; 
	BOOL			 m_bSelecting; 
 
	CToolBarEx m_wndToolBar; 
	PtrArray m_ListBt; 
	CImageList m_BtList ; 
	CImageList	m_ilTB; 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(MyWnd) 
	public: 
	virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL); 
	virtual BOOL DestroyWindow(); 
	protected: 
	virtual LRESULT DefWindowProc(UINT message, WPARAM wParam, LPARAM lParam); 
	virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam); 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	virtual ~MyWnd(); 
 
	// Generated message map functions 
protected: 
	//{{AFX_MSG(MyWnd) 
	afx_msg void OnMouseMove(UINT nFlags, CPoint point); 
	afx_msg void OnPaint(); 
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point); 
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point); 
	afx_msg void OnLine(); 
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 
	afx_msg void OnHand(); 
	afx_msg void OnSize(UINT nType, int cx, int cy); 
	afx_msg BOOL OnToolTipNotify( UINT id, NMHDR * pNMHDR, LRESULT * pResult ); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_MYWND_H__AC7CB5CC_26DB_405B_AA59_7754709EEE3E__INCLUDED_)