OpenMoHAA 0.82.0
Loading...
Searching...
No Matches
GroupPage.h
1#if !defined(AFX_GROUPPAGE_H__BC96C600_E6B9_49FF_8E49_75A013B824B2__INCLUDED_)
2#define AFX_GROUPPAGE_H__BC96C600_E6B9_49FF_8E49_75A013B824B2__INCLUDED_
3
4#if _MSC_VER > 1000
5#pragma once
6#endif // _MSC_VER > 1000
7// GroupPage.h : header file
8//
9
10#include "../peer.h"
11
13// CGroupPage dialog
14
16{
17 SBServer server;
18 CString name;
19 PEERBool staging;
20 int ping;
21 int numPlayers;
22 int maxPlayers;
23};
24
25class CGroupPage : public CPropertyPage
26{
27 DECLARE_DYNCREATE(CGroupPage)
28
29// Construction
30public:
31 CGroupPage();
32 ~CGroupPage();
33
34// Dialog Data
35 //{{AFX_DATA(CGroupPage)
36 enum { IDD = IDD_GROUP_PAGE };
37 CListCtrl m_players;
38 CListCtrl m_games;
39 CListBox m_chatWindow;
40 CProgressCtrl m_progress;
41 CButton m_sendButton;
42 CString m_message;
43 //}}AFX_DATA
44
45 void ClearGames();
46 int FindListedGame(SBServer server);
47
48 int FindPlayer(const char * nick);
49 void UpdatePlayerPing(const char * nick, int ping);
50 void RemovePlayer(const char * nick);
51 void ChangePlayerNick(const char * oldNick, const char * newNick);
52
53 void JoinGame(int nIndex);
54
55 void SendMessage();
56
57// Overrides
58 // ClassWizard generate virtual function overrides
59 //{{AFX_VIRTUAL(CGroupPage)
60 public:
61 virtual BOOL OnSetActive();
62 virtual LRESULT OnWizardNext();
63 virtual BOOL OnKillActive();
64 virtual LRESULT OnWizardBack();
65 protected:
66 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
67 //}}AFX_VIRTUAL
68
69// Implementation
70protected:
71 // Generated message map functions
72 //{{AFX_MSG(CGroupPage)
73 virtual BOOL OnInitDialog();
74 afx_msg void OnCreate();
75 afx_msg void OnClickGames(NMHDR* pNMHDR, LRESULT* pResult);
76 afx_msg void OnBegindragGames(NMHDR* pNMHDR, LRESULT* pResult);
77 afx_msg void OnDblclkGames(NMHDR* pNMHDR, LRESULT* pResult);
78 afx_msg void OnDestroy();
79 //}}AFX_MSG
80 DECLARE_MESSAGE_MAP()
81};
82
83//{{AFX_INSERT_LOCATION}}
84// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
85
86extern CGroupPage * GroupPage;
87
88#endif // !defined(AFX_GROUPPAGE_H__BC96C600_E6B9_49FF_8E49_75A013B824B2__INCLUDED_)
Definition GroupPage.h:26
Definition GroupPage.h:16