Debian Codegraph @

editor/ManageCheckin.cpp

raw symbols SCIP
1 /*
2 * Descent 3
3 * Copyright (C) 2024 Parallax Software
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 // ManageCheckin.cpp : implementation file
20 //
21
22 #include "stdafx.h"
23 #include "editor.h"
24 #include "ManageCheckin.h"
25 #include "gametexture.h"
26
27 #ifdef _DEBUG
28 #define new DEBUG_NEW
29 #undef THIS_FILE
30 static char THIS_FILE[] = __FILE__;
31 #endif
32
33 /////////////////////////////////////////////////////////////////////////////
34 // CManageCheckin dialog
35
36 CManageCheckin::CManageCheckin(CWnd *pParent /*=NULL*/) : CDialog(CManageCheckin::IDD, pParent) {
37 //{{AFX_DATA_INIT(CManageCheckin)
38 // NOTE: the ClassWizard will add member initialization here
39 //}}AFX_DATA_INIT
40 }
41
42 void CManageCheckin::DoDataExchange(CDataExchange *pDX) {
43 CDialog::DoDataExchange(pDX);
44 //{{AFX_DATA_MAP(CManageCheckin)
45 // NOTE: the ClassWizard will add DDX and DDV calls here
46 //}}AFX_DATA_MAP
47 }
48
49 BEGIN_MESSAGE_MAP(CManageCheckin, CDialog)
50 //{{AFX_MSG_MAP(CManageCheckin)
51 //}}AFX_MSG_MAP
52 END_MESSAGE_MAP()
53
54 /////////////////////////////////////////////////////////////////////////////
55 // CManageCheckin message handlers
56
57 BOOL CManageCheckin::OnInitDialog() {
58 CDialog::OnInitDialog();
59
60 SendDlgItemMessage(IDC_MULTICHECKIN_LISTBOX, LB_RESETCONTENT, 0, 0);
61 for (int i = 0; i < MAX_TEXTURES; i++) {
62 if (GameTextures[i].used)
63 SendDlgItemMessage(IDC_MULTICHECKIN_LISTBOX, LB_ADDSTRING, 0, (LPARAM)(LPCTSTR)GameTextures[i].name);
64 }
65
66 return TRUE; // return TRUE unless you set the focus to a control
67 // EXCEPTION: OCX Property Pages should return FALSE
68 }