#include "spider.h"
#include <commctrl.h>
#include <tchar.h>
Go to the source code of this file.
|
LRESULT CALLBACK | WndProc (HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam) |
|
void | MakePath (TCHAR *szDest, UINT nDestLen, const TCHAR *szExt) |
|
INT_PTR CALLBACK | DifficultyDlgProc (HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) |
|
int WINAPI | _tWinMain (HINSTANCE hInst, HINSTANCE hPrev, LPTSTR szCmdLine, int iCmdShow) |
|
LRESULT CALLBACK | CardImageWndProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) |
|
INT_PTR CALLBACK | CardBackDlgProc (HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) |
|
VOID | ShowDeckOptionsDlg (HWND hwnd) |
|
◆ CARDBACK
◆ PCARDBACK
◆ _tWinMain()
Definition at line 81 of file spider.cpp.
82{
87 HACCEL hAccelTable;
88
90
91
93
98
99
110
112
116
118
119
120
121
123
129 0,
130 0,
135
137
140
142
144
146 {
148 {
151 }
152 }
154}
BOOL WINAPI InitCommonControlsEx(const INITCOMMONCONTROLSEX *lpInitCtrls)
DWORD WINAPI GetTickCount(VOID)
void __cdecl srand(_In_ unsigned int _Seed)
#define WS_OVERLAPPEDWINDOW
INT_PTR CALLBACK DifficultyDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
TCHAR szHelpPath[MAX_PATH]
void MakePath(TCHAR *szDest, UINT nDestLen, const TCHAR *szExt)
LRESULT CALLBACK WndProc(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam)
TW_UINT32 TW_UINT16 TW_UINT16 MSG
BOOL WINAPI TranslateMessage(_In_ const MSG *)
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
BOOL WINAPI UpdateWindow(_In_ HWND)
#define TranslateAccelerator
◆ CardBackDlgProc()
Definition at line 225 of file spider.cpp.
226{
228
229 switch (uMsg)
230 {
232 {
235
237
238 if (!pCardBacks)
240
242 {
250
252 }
253
255 }
256
259 {
262 {
263 if (pCardBacks[
i].bSelected)
264 {
266 }
267 }
268
272 }
273
275 {
279 {
281
284 }
285
286 break;
287 }
288 }
289
291}
#define HeapFree(x, y, z)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define CARDBACK_RES_START
struct _CardBack CARDBACK
LRESULT CALLBACK CardImageWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
struct _CardBack * PCARDBACK
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
BOOL WINAPI InvalidateRect(_In_opt_ HWND, _In_opt_ LPCRECT, _In_ BOOL)
LRESULT(CALLBACK * WNDPROC)(HWND, UINT, WPARAM, LPARAM)
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)
Referenced by ShowDeckOptionsDlg().
◆ CardImageWndProc()
Definition at line 156 of file spider.cpp.
157{
160
161 if (!pCardBack)
163
164 if (!hOldProc)
166
168 {
170 {
173 HPEN hPen, hOldPen;
174 HBRUSH hBrush, hOldBrush;
176
178
180 {
182 }
183 else
184 {
187 }
188
193
195
197 2,
198 2,
203 0,
207
210
212
213 break;
214 }
215
218 break;
219 }
220
222}
#define CARDBACK_OPTIONS_HEIGHT
#define CARDBACK_OPTIONS_WIDTH
HGDIOBJ WINAPI GetStockObject(_In_ int)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
BOOL WINAPI StretchBlt(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int, _In_opt_ HDC, _In_ int, _In_ int, _In_ int, _In_ int, _In_ DWORD)
BOOL WINAPI Rectangle(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int)
HPEN WINAPI CreatePen(_In_ int, _In_ int, _In_ COLORREF)
DWORD WINAPI GetSysColor(_In_ int)
BOOL WINAPI EndPaint(_In_ HWND, _In_ const PAINTSTRUCT *)
HDC WINAPI BeginPaint(_In_ HWND, _Out_ LPPAINTSTRUCT)
Referenced by CardBackDlgProc().
◆ DifficultyDlgProc()
Definition at line 49 of file spider.cpp.
50{
51 switch (uMsg)
52 {
56
59 {
67
71
75 }
76 break;
77 }
79}
#define IDC_DIF_FOURCOLORS
#define IDC_DIF_TWOCOLORS
UINT WINAPI IsDlgButtonChecked(_In_ HWND, _In_ int)
BOOL WINAPI CheckRadioButton(_In_ HWND, _In_ int, _In_ int, _In_ int)
Referenced by _tWinMain().
◆ MakePath()
◆ ShowDeckOptionsDlg()
Definition at line 294 of file spider.cpp.
295{
297
299 {
302 }
303}
void SetBackCardIdx(UINT uBackIdx)
INT_PTR CALLBACK CardBackDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Referenced by WndProc().
◆ WndProc()
Definition at line 305 of file spider.cpp.
306{
307 static int nWidth, nHeight;
308
309 switch (iMsg)
310 {
312 {
313
315
319
321
323
324 return 0;
325 }
326
329 return 0;
330
334
336 return 0;
337
339 {
341
349 return 0;
350 }
351
354 {
357 return 0;
358
361 return 0;
362
365 return 0;
366
369 return 0;
370
373 return 0;
374 }
375
376 return 0;
377
380 {
382 return 0;
383 }
384 else
385 {
387
390 {
393 }
394 }
395 return 0;
396 }
398}
#define IDM_HELP_CONTENTS
BOOL Create(HWND hwndParent, DWORD dwExStyle, DWORD dwStyle, int x, int y, int width, int height)
VOID ShowDeckOptionsDlg(HWND hwnd)
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
__analysis_noreturn void WINAPI PostQuitMessage(_In_ int)
#define MB_ICONINFORMATION
BOOL WINAPI DestroyWindow(_In_ HWND)
BOOL WINAPI EnableMenuItem(_In_ HMENU, _In_ UINT, _In_ UINT)
int WINAPI GetSystemMetrics(_In_ int)
BOOL WINAPI MoveWindow(_In_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ BOOL)
HMENU WINAPI GetMenu(_In_ HWND)
Referenced by _tWinMain().
◆ dwAppStartTime
◆ dwDifficulty
◆ hInstance
◆ hwndMain
◆ MsgAbout
◆ MsgDeal
◆ MsgQuit
◆ MsgWin
◆ SpiderWnd
◆ szAppName
◆ szHelpPath