TableView.h
上传用户:bsw_2008
上传日期:2013-07-09
资源大小:2446k
文件大小:2k
- #if !defined(AFX_TABLEVIEW_H__C1260670_C59F_4021_9148_24D9578307B8__INCLUDED_)
- #define AFX_TABLEVIEW_H__C1260670_C59F_4021_9148_24D9578307B8__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // TableView.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // CTableView view
- #include "GameDlg.h"
- #include "Client.h"
- class CTableView : public CScrollView
- {
- typedef struct TT{
- int east,south,west,north;
- };
- protected:
- CTableView(); // protected constructor used by dynamic creation
- DECLARE_DYNCREATE(CTableView)
- // Attributes
- public:
- // Operations
- public:
- CClient *pClient;
- void DrawTable();
- TT table[4][4];
- int flag;
- CGameDlg *dlg;
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CTableView)
- public:
- virtual void OnFinalRelease();
- protected:
- virtual void OnDraw(CDC* pDC); // overridden to draw this view
- virtual void OnInitialUpdate(); // first time after construct
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- virtual ~CTableView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- // Generated message map functions
- //{{AFX_MSG(CTableView)
- afx_msg BOOL OnEraseBkgnd(CDC* pDC);
- afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
- afx_msg void OnMouseMove(UINT nFlags, CPoint point);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- // Generated OLE dispatch map functions
- //{{AFX_DISPATCH(CTableView)
- // NOTE - the ClassWizard will add and remove member functions here.
- //}}AFX_DISPATCH
- DECLARE_DISPATCH_MAP()
- DECLARE_INTERFACE_MAP()
- private:
- HCURSOR m_hWait;
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_TABLEVIEW_H__C1260670_C59F_4021_9148_24D9578307B8__INCLUDED_)