Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
teamsdialog.h
Go to the documentation of this file.
1/*
2** Command & Conquer Generals Zero Hour(tm)
3** Copyright 2025 Electronic Arts Inc.
4**
5** This program is free software: you can redistribute it and/or modify
6** it under the terms of the GNU General Public License as published by
7** the Free Software Foundation, either version 3 of the License, or
8** (at your option) any later version.
9**
10** This program is distributed in the hope that it will be useful,
11** but WITHOUT ANY WARRANTY; without even the implied warranty of
12** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13** GNU General Public License for more details.
14**
15** You should have received a copy of the GNU General Public License
16** along with this program. If not, see <http://www.gnu.org/licenses/>.
17*/
18
19#if !defined(AFX_TEAMSDIALOG_H__1410F415_1597_4EAF_AE0B_42DACDEB35B9__INCLUDED_)
20#define AFX_TEAMSDIALOG_H__1410F415_1597_4EAF_AE0B_42DACDEB35B9__INCLUDED_
21
22#if _MSC_VER > 1000
23#pragma once
24#endif // _MSC_VER > 1000
25// teamsdialog.h : header file
26//
27
28#include "GameLogic/SidesList.h"
29
31// CTeamsDialog dialog
32
33class CTeamsDialog : public CDialog
34{
35// Construction
36public:
37 CTeamsDialog(CWnd* pParent = NULL); // standard constructor
38
39// Dialog Data
40 //{{AFX_DATA(CTeamsDialog)
42 // NOTE: the ClassWizard will add data members here
43 //}}AFX_DATA
44
45
46// Overrides
47 // ClassWizard generated virtual function overrides
48 //{{AFX_VIRTUAL(CTeamsDialog)
49 protected:
50 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
51 //}}AFX_VIRTUAL
52
53// Implementation
54protected:
55
56 // Generated message map functions
57 //{{AFX_MSG(CTeamsDialog)
58 virtual BOOL OnInitDialog();
59 virtual void OnOK();
60 virtual void OnCancel();
61 afx_msg void OnNewteam();
62 afx_msg void OnDeleteteam();
63 afx_msg void OnEditTemplate();
64 afx_msg void OnSelchangePlayerList();
65 afx_msg void OnClickTeamsList(NMHDR* pNMHDR, LRESULT* pResult);
66 afx_msg void OnDblclkTeamsList(NMHDR* pNMHDR, LRESULT* pResult);
67 afx_msg void OnCopyteam();
68 afx_msg void OnSelectTeamMembers();
69 afx_msg void OnMoveDownTeam();
70 afx_msg void OnMoveUpTeam();
71 //}}AFX_MSG
72 DECLARE_MESSAGE_MAP()
73
77
78 enum
79 {
83
86 };
87
88 void updateUI(Int whatToRebuild);
89 void validateTeamOwners( void );
92
93private:
94 void UpdateTeamsList(void);
95
96};
97
98//{{AFX_INSERT_LOCATION}}
99// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
100
101#endif // !defined(AFX_TEAMSDIALOG_H__1410F415_1597_4EAF_AE0B_42DACDEB35B9__INCLUDED_)
#define NULL
Definition BaseType.h:92
bool Bool
Definition BaseType.h:132
#define IDD_TEAMS_DIALOG
Definition resource.h:94
#define BOOL
Definition Wnd_File.h:57
CTeamsDialog(CWnd *pParent=NULL)
afx_msg void OnNewteam()
virtual void OnCancel()
Bool isValidTeamOwner(AsciiString ownerName)
afx_msg void OnCopyteam()
void doCorrectTeamOwnerDialog(TeamsInfo *ti)
afx_msg void OnClickTeamsList(NMHDR *pNMHDR, LRESULT *pResult)
SidesList m_sides
Definition teamsdialog.h:75
afx_msg void OnDblclkTeamsList(NMHDR *pNMHDR, LRESULT *pResult)
virtual void DoDataExchange(CDataExchange *pDX)
afx_msg void OnDeleteteam()
virtual BOOL OnInitDialog()
afx_msg void OnEditTemplate()
virtual void OnOK()
void updateUI(Int whatToRebuild)
afx_msg void OnSelectTeamMembers()
void validateTeamOwners(void)
afx_msg void OnMoveDownTeam()
This function moves a team down the list in the teams list dialog.
afx_msg void OnSelchangePlayerList()
afx_msg void OnMoveUpTeam()