CGameHallFrameView.h
上传用户:bsw_2008
上传日期:2013-07-09
资源大小:2446k
文件大小:3k
源码类别:

棋牌游戏

开发平台:

Visual C++

  1. // CGameHallFrameView.h : interface of the CCGameHallFrameView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_CGAMEHALLFRAMEVIEW_H__599FBBC8_1619_4DE1_B329_D59708096537__INCLUDED_)
  5. #define AFX_CGAMEHALLFRAMEVIEW_H__599FBBC8_1619_4DE1_B329_D59708096537__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include "Register1.h"
  10. #include "Login.h"
  11. #include "Client.h"
  12. #include "ClientProtocol.h"
  13. #define CLI_MESSAGE WM_USER + 101
  14. #include "TableView.h"
  15. class CCGameHallFrameDoc;
  16. class CCGameHallFrameView : public CFormView
  17. {
  18. protected: // create from serialization only
  19. CCGameHallFrameView();
  20. DECLARE_DYNCREATE(CCGameHallFrameView)
  21. public:
  22. CClientProtocol protocol;
  23. CLogin *login;
  24. CRegister1 *register1;
  25. //{{AFX_DATA(CCGameHallFrameView)
  26. enum { IDD = IDD_CGAMEHALLFRAME_FORM };
  27. CTreeCtrl m_wndTree;
  28. //}}AFX_DATA
  29. // Attributes
  30. public:
  31. CCGameHallFrameDoc* GetDocument();
  32. // Operations
  33. public:
  34. // Overrides
  35. // ClassWizard generated virtual function overrides
  36. //{{AFX_VIRTUAL(CCGameHallFrameView)
  37. public:
  38. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  39. protected:
  40. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  41. virtual void OnInitialUpdate(); // called first time after construct
  42. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  43. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  44. virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  45. virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
  46. //}}AFX_VIRTUAL
  47. // Implementation
  48. public:
  49. BOOL ClientConnect();
  50. CClient m_client;
  51. CTableView * pTable;
  52. CString name,code,sex;
  53. virtual ~CCGameHallFrameView();
  54. #ifdef _DEBUG
  55. virtual void AssertValid() const;
  56. virtual void Dump(CDumpContext& dc) const;
  57. #endif
  58. protected:
  59. // Generated message map functions
  60. protected:
  61. void dealMessage(char k);
  62. void ClientMessage(char k);
  63. BOOL m_Init;
  64. int r;
  65. CString ServerIP;
  66. afx_msg LRESULT OnClientMessage(WPARAM wParam, LPARAM lParam);
  67. //{{AFX_MSG(CCGameHallFrameView)
  68. afx_msg void OnDblclkServertree(NMHDR* pNMHDR, LRESULT* pResult);
  69. afx_msg void OnSize(UINT nType, int cx, int cy);
  70. //}}AFX_MSG
  71. DECLARE_MESSAGE_MAP()
  72. private:
  73. CImageList m_imglDrives;
  74. };
  75. #ifndef _DEBUG  // debug version in CGameHallFrameView.cpp
  76. inline CCGameHallFrameDoc* CCGameHallFrameView::GetDocument()
  77.    { return (CCGameHallFrameDoc*)m_pDocument; }
  78. #endif
  79. /////////////////////////////////////////////////////////////////////////////
  80. //{{AFX_INSERT_LOCATION}}
  81. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  82. #endif // !defined(AFX_CGAMEHALLFRAMEVIEW_H__599FBBC8_1619_4DE1_B329_D59708096537__INCLUDED_)