CGameHallFrameView.h
上传用户:bsw_2008
上传日期:2013-07-09
资源大小:2446k
文件大小:3k
- // CGameHallFrameView.h : interface of the CCGameHallFrameView class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_CGAMEHALLFRAMEVIEW_H__599FBBC8_1619_4DE1_B329_D59708096537__INCLUDED_)
- #define AFX_CGAMEHALLFRAMEVIEW_H__599FBBC8_1619_4DE1_B329_D59708096537__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "Register1.h"
- #include "Login.h"
- #include "Client.h"
- #include "ClientProtocol.h"
- #define CLI_MESSAGE WM_USER + 101
- #include "TableView.h"
- class CCGameHallFrameDoc;
- class CCGameHallFrameView : public CFormView
- {
- protected: // create from serialization only
- CCGameHallFrameView();
- DECLARE_DYNCREATE(CCGameHallFrameView)
- public:
- CClientProtocol protocol;
- CLogin *login;
- CRegister1 *register1;
- //{{AFX_DATA(CCGameHallFrameView)
- enum { IDD = IDD_CGAMEHALLFRAME_FORM };
- CTreeCtrl m_wndTree;
- //}}AFX_DATA
- // Attributes
- public:
- CCGameHallFrameDoc* GetDocument();
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CCGameHallFrameView)
- public:
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- virtual void OnInitialUpdate(); // called first time after construct
- virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
- virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
- virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
- virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- BOOL ClientConnect();
- CClient m_client;
- CTableView * pTable;
- CString name,code,sex;
- virtual ~CCGameHallFrameView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected:
- // Generated message map functions
- protected:
- void dealMessage(char k);
- void ClientMessage(char k);
- BOOL m_Init;
- int r;
- CString ServerIP;
- afx_msg LRESULT OnClientMessage(WPARAM wParam, LPARAM lParam);
- //{{AFX_MSG(CCGameHallFrameView)
- afx_msg void OnDblclkServertree(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnSize(UINT nType, int cx, int cy);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- private:
- CImageList m_imglDrives;
- };
- #ifndef _DEBUG // debug version in CGameHallFrameView.cpp
- inline CCGameHallFrameDoc* CCGameHallFrameView::GetDocument()
- { return (CCGameHallFrameDoc*)m_pDocument; }
- #endif
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_CGAMEHALLFRAMEVIEW_H__599FBBC8_1619_4DE1_B329_D59708096537__INCLUDED_)