#include "spider.h"
#include <commctrl.h>
#include <shellapi.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 82 of file spider.cpp.
83{
88 HACCEL hAccelTable;
89
91
92
94
99
100
111
113
117
119
120
121
122
124
130 0,
131 0,
136
138
141
143
145
147 {
149 {
152 }
153 }
155}
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 226 of file spider.cpp.
227{
229
230 switch (uMsg)
231 {
233 {
236
238
239 if (!pCardBacks)
241
243 {
251
253 }
254
256 }
257
260 {
263 {
264 if (pCardBacks[
i].bSelected)
265 {
267 }
268 }
269
273 }
274
276 {
280 {
282
285 }
286
287 break;
288 }
289 }
290
292}
#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 157 of file spider.cpp.
158{
161
162 if (!pCardBack)
164
165 if (!hOldProc)
167
169 {
171 {
174 HPEN hPen, hOldPen;
175 HBRUSH hBrush, hOldBrush;
177
179
181 {
183 }
184 else
185 {
188 }
189
194
196
198 2,
199 2,
204 0,
208
211
213
214 break;
215 }
216
219 break;
220 }
221
223}
#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 50 of file spider.cpp.
51{
52 switch (uMsg)
53 {
57
60 {
68
72
76 }
77 break;
78 }
80}
#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 295 of file spider.cpp.
296{
298
300 {
303 }
304}
void SetBackCardIdx(UINT uBackIdx)
INT_PTR CALLBACK CardBackDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Referenced by WndProc().
◆ WndProc()
Definition at line 306 of file spider.cpp.
307{
308 static int nWidth, nHeight;
309
310 switch (iMsg)
311 {
313 {
314
316
320
322
324
325 return 0;
326 }
327
330 return 0;
331
335
337 return 0;
338
340 {
342
350 return 0;
351 }
352
355 {
358 return 0;
359
362 return 0;
363
366 return 0;
367
371 return 0;
372
375 return 0;
376 }
377
378 return 0;
379
382 {
384 return 0;
385 }
386 else
387 {
389
392 {
395 }
396 }
397 return 0;
398 }
400}
#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)
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