-
Notifications
You must be signed in to change notification settings - Fork 17
/
LauncherDlg.h
214 lines (177 loc) · 4.04 KB
/
LauncherDlg.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
//
// ランチャーダイアログクラス
//
#ifndef __CLAUNCHERDLG_INCLUDED__
#define __CLAUNCHERDLG_INCLUDED__
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <list>
#include <vector>
#include <string>
using namespace std;
#include "Wnd.h"
class FILELIST
{
public:
string fname;
string path;
INT mapper;
INT prg_size;
INT chr_size;
DWORD crcall;
DWORD crc;
string info;
string db;
string title;
string country;
string manufacturer;
string saledate;
string price;
string genre;
};
class CLauncherDlg : public CWnd
{
public:
// Override from CWnd
BOOL Create( HWND hWndParent );
void Destroy();
// Table
static INT m_HeaderID[];
protected:
enum {
COLUMN_FILENAME = 0,
COLUMN_PATH,
COLUMN_MAPPER,
COLUMN_PRG,
COLUMN_CHR,
COLUMN_ALLCRC,
COLUMN_PRGCRC,
COLUMN_INFO,
COLUMN_DB,
COLUMN_TITLE,
COLUMN_COUNTRY,
COLUMN_MANUFACTURER,
COLUMN_SALEDATE,
COLUMN_PRICE,
COLUMN_GENRE,
};
static INT CALLBACK ListViewCompare( LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort );
void ResetListViewHeader();
void ResetFileList();
void ResetListView();
void SetListView( INT index, FILELIST& fl );
void SortListView();
void SetLastSelect();
void OnUpdateStart();
void OnUpdateStop();
void UpdateListView();
void CheckFile( FILELIST& fl );
void OnUpdateMenu( HMENU hMenu, UINT uID );
BOOL LoadFileList();
void SaveFileList();
// Message map
DLG_MESSAGE_MAP()
DLGMSG OnInitDialog( DLGMSGPARAM );
DLGMSG OnDestroy( DLGMSGPARAM );
DLGMSG OnClose( DLGMSGPARAM );
DLGMSG OnActivate( DLGMSGPARAM );
DLGMSG OnSetCursor( DLGMSGPARAM );
DLGMSG OnSize( DLGMSGPARAM );
DLGMSG OnTimer( DLGMSGPARAM );
DLGMSG OnInitMenuPopup( DLGMSGPARAM );
DLGCMD OnOK( DLGCMDPARAM );
DLGCMD OnCancel( DLGCMDPARAM );
DLGCMD OnListSelect( DLGCMDPARAM );
DLGCMD OnRefresh( DLGCMDPARAM );
DLGCMD OnDispEdit( DLGCMDPARAM );
DLGCMD OnFolder( DLGCMDPARAM );
DLGCMD OnHeaderEdit( DLGCMDPARAM );
DLGNOTIFY OnKeyDownListView( DLGNOTIFYPARAM );
DLGNOTIFY OnReturnListView( DLGNOTIFYPARAM );
DLGNOTIFY OnDoubleClickListView( DLGNOTIFYPARAM );
DLGNOTIFY OnColumnClickListView( DLGNOTIFYPARAM );
DLGNOTIFY OnItemChangedListView( DLGNOTIFYPARAM );
//
// Image List
HIMAGELIST m_hImageList;
HIMAGELIST m_hImageListHdr; // sort
//
BOOL m_bFileLoaded;
// ランチャーリスト番号
INT m_nListSelect;
INT m_nSortType;
INT m_SelectPos;
INT m_UpdatePos;
BOOL m_bUpdate;
volatile BOOL m_bUpdating;
INT m_nTimerID;
INT m_nUpdateIndex;
// Sort type
static BOOL m_bSortDir;
// File list
static INT m_FileListNum;
static vector<FILELIST> m_FileList;
// Path
static CHAR m_LaunchPath[_MAX_PATH];
private:
};
class CLchDispEditDlg : public CWnd
{
public:
// Override from CWnd
INT DoModal( HWND hWndParent );
protected:
// Message map
DLG_MESSAGE_MAP()
DLGMSG OnInitDialog( DLGMSGPARAM );
DLGCMD OnOK( DLGCMDPARAM );
DLGCMD OnCancel( DLGCMDPARAM );
DLGCMD OnAdd( DLGCMDPARAM );
DLGCMD OnDel( DLGCMDPARAM );
DLGCMD OnUp( DLGCMDPARAM );
DLGCMD OnDown( DLGCMDPARAM );
//
// Temp
INT m_nViewOrder[16];
INT m_nViewNum;
INT m_nHideOrder[16];
INT m_nHideNum;
private:
};
class CLchFolderConfigDlg : public CWnd
{
public:
// Override from CWnd
INT DoModal( HWND hWndParent );
protected:
// Message map
DLG_MESSAGE_MAP()
DLGMSG OnInitDialog( DLGMSGPARAM );
DLGCMD OnOK( DLGCMDPARAM );
DLGCMD OnCancel( DLGCMDPARAM );
DLGCMD OnAdd( DLGCMDPARAM );
DLGCMD OnDel( DLGCMDPARAM );
//
private:
};
class CLchHeaderEditDlg : public CWnd
{
public:
// Override from CWnd
INT DoModal( HWND hWndParent );
INT m_nMapperNo;
BOOL m_bMirror;
BOOL m_bSram;
BOOL m_bTrainer;
BOOL m_bFourScreen;
BOOL m_bVSUnisystem;
protected:
// Message map
DLG_MESSAGE_MAP()
DLGMSG OnInitDialog( DLGMSGPARAM );
DLGCMD OnOK( DLGCMDPARAM );
DLGCMD OnCancel( DLGCMDPARAM );
//
private:
};
#endif // !__CLAUNCHERDLG_INCLUDED__