ReactOS 0.4.15-dev-5875-g7c755d9
spider.cpp File Reference
#include "spider.h"
#include <commctrl.h>
#include <tchar.h>
Include dependency graph for spider.cpp:

Go to the source code of this file.

Classes

struct  _CardBack
 

Typedefs

typedef struct _CardBack CARDBACK
 
typedef struct _CardBackPCARDBACK
 

Functions

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)
 

Variables

TCHAR szHelpPath [MAX_PATH]
 
DWORD dwAppStartTime
 
HWND hwndMain
 
HINSTANCE hInstance
 
TCHAR szAppName [128]
 
TCHAR MsgQuit [128]
 
TCHAR MsgAbout [128]
 
TCHAR MsgWin [128]
 
TCHAR MsgDeal [128]
 
DWORD dwDifficulty
 
CardWindow SpiderWnd
 

Typedef Documentation

◆ CARDBACK

◆ PCARDBACK

Function Documentation

◆ _tWinMain()

int WINAPI _tWinMain ( HINSTANCE  hInst,
HINSTANCE  hPrev,
LPTSTR  szCmdLine,
int  iCmdShow 
)

Definition at line 81 of file spider.cpp.

82{
83 HWND hwnd;
84 MSG msg;
85 WNDCLASS wndclass;
87 HACCEL hAccelTable;
88
90
91 /* Load application title */
93 /* Load MsgBox() texts here to avoid loading them many times later */
94 LoadString(hInst, IDS_SPI_ABOUT, MsgAbout, sizeof(MsgAbout) / sizeof(MsgAbout[0]));
95 LoadString(hInst, IDS_SPI_QUIT, MsgQuit, sizeof(MsgQuit) / sizeof(MsgQuit[0]));
96 LoadString(hInst, IDS_SPI_WIN, MsgWin, sizeof(MsgWin) / sizeof(MsgWin[0]));
97 LoadString(hInst, IDS_SPI_DEAL, MsgDeal, sizeof(MsgDeal) / sizeof(MsgDeal[0]));
98
99 /* Window class for the main application parent window */
100 wndclass.style = 0;
101 wndclass.lpfnWndProc = WndProc;
102 wndclass.cbClsExtra = 0;
103 wndclass.cbWndExtra = 0;
104 wndclass.hInstance = hInst;
106 wndclass.hCursor = LoadCursor (NULL, IDC_ARROW);
107 wndclass.hbrBackground = (HBRUSH)NULL;
109 wndclass.lpszClassName = szAppName;
110
111 RegisterClass(&wndclass);
112
113 ice.dwSize = sizeof(ice);
116
117 srand((unsigned)GetTickCount());
118
119 /* InitCardLib(); */
120
121 /* Construct the path to our help file */
122 MakePath(szHelpPath, MAX_PATH, _T(".hlp"));
123
125 szAppName,
129 0, /*The real size will be computed in WndProc through WM_GETMINMAXINFO */
130 0, /* The real size will be computed in WndProc through WM_GETMINMAXINFO */
131 NULL,
132 NULL,
133 hInst,
134 NULL);
135
136 hwndMain = hwnd;
137
138 ShowWindow(hwnd, iCmdShow);
140
142
144
145 while (GetMessage(&msg, NULL,0,0))
146 {
147 if (!TranslateAccelerator(hwnd, hAccelTable, &msg))
148 {
151 }
152 }
153 return msg.wParam;
154}
#define msg(x)
Definition: auth_time.c:54
#define IDR_MENU1
Definition: resource.h:6
#define IDR_ACCELERATOR1
Definition: resource.h:7
#define IDD_DIFFICULTY
Definition: resource.h:31
#define IDS_SPI_QUIT
Definition: resource.h:39
#define IDS_SPI_NAME
Definition: resource.h:37
#define IDS_SPI_WIN
Definition: resource.h:40
#define IDS_SPI_DEAL
Definition: resource.h:41
#define IDS_SPI_ABOUT
Definition: resource.h:38
#define IDI_SPIDER
Definition: resource.h:4
BOOL WINAPI InitCommonControlsEx(const INITCOMMONCONTROLSEX *lpInitCtrls)
Definition: commctrl.c:893
#define NULL
Definition: types.h:112
#define MAX_PATH
Definition: compat.h:34
DWORD WINAPI GetTickCount(VOID)
Definition: time.c:455
HINSTANCE hInst
Definition: dxdiag.c:13
void __cdecl srand(_In_ unsigned int _Seed)
#define WS_OVERLAPPEDWINDOW
Definition: pedump.c:637
#define ICC_BAR_CLASSES
Definition: commctrl.h:60
TCHAR szAppName[128]
Definition: spider.cpp:20
INT_PTR CALLBACK DifficultyDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: spider.cpp:49
TCHAR szHelpPath[MAX_PATH]
Definition: spider.cpp:14
TCHAR MsgDeal[128]
Definition: spider.cpp:24
TCHAR MsgAbout[128]
Definition: spider.cpp:22
TCHAR MsgWin[128]
Definition: spider.cpp:23
void MakePath(TCHAR *szDest, UINT nDestLen, const TCHAR *szExt)
Definition: spider.cpp:40
HINSTANCE hInstance
Definition: spider.cpp:18
HWND hwndMain
Definition: spider.cpp:17
LRESULT CALLBACK WndProc(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam)
Definition: spider.cpp:305
TCHAR MsgQuit[128]
Definition: spider.cpp:21
HBRUSH hbrBackground
Definition: winuser.h:3160
HICON hIcon
Definition: winuser.h:3158
HINSTANCE hInstance
Definition: winuser.h:3157
HCURSOR hCursor
Definition: winuser.h:3159
int cbWndExtra
Definition: winuser.h:3156
UINT style
Definition: winuser.h:3153
LPCSTR lpszMenuName
Definition: winuser.h:3161
LPCSTR lpszClassName
Definition: winuser.h:3162
WNDPROC lpfnWndProc
Definition: winuser.h:3154
int cbClsExtra
Definition: winuser.h:3155
TW_UINT32 TW_UINT16 TW_UINT16 MSG
Definition: twain.h:1829
#define _T(x)
Definition: vfdio.h:22
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
BOOL WINAPI TranslateMessage(_In_ const MSG *)
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
#define IDC_ARROW
Definition: winuser.h:682
#define CreateWindow
Definition: winuser.h:5744
#define GetMessage
Definition: winuser.h:5780
#define LoadIcon
Definition: winuser.h:5803
BOOL WINAPI UpdateWindow(_In_ HWND)
#define LoadCursor
Definition: winuser.h:5802
#define CW_USEDEFAULT
Definition: winuser.h:225
#define LoadString
Definition: winuser.h:5809
#define RegisterClass
Definition: winuser.h:5826
#define DispatchMessage
Definition: winuser.h:5755
#define TranslateAccelerator
Definition: winuser.h:5850
#define MAKEINTRESOURCE
Definition: winuser.h:591
#define LoadAccelerators
Definition: winuser.h:5800
#define DialogBox
Definition: winuser.h:5751

◆ CardBackDlgProc()

INT_PTR CALLBACK CardBackDlgProc ( HWND  hDlg,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 225 of file spider.cpp.

226{
227 static PCARDBACK pCardBacks = NULL;
228
229 switch (uMsg)
230 {
231 case WM_INITDIALOG:
232 {
233 INT i, c;
234 SIZE_T size = sizeof(CARDBACK) * NUM_CARDBACKS;
235
236 pCardBacks = (PCARDBACK)HeapAlloc(GetProcessHeap(), 0, size);
237
238 if (!pCardBacks)
239 return FALSE;
240
241 for (i = 0, c = CARDBACK_START; c <= CARDBACK_END; i++, c++)
242 {
243 pCardBacks[i].hSelf = GetDlgItem(hDlg, c);
244 pCardBacks[i].bSelected = FALSE;
245 pCardBacks[i].hdcNum = CARDBACK_RES_START + i;
246 pCardBacks[i].imgNum = i + 1;
247 pCardBacks[i].hOldProc = (WNDPROC)SetWindowLongPtr(pCardBacks[i].hSelf,
250
251 SetWindowLongPtr(pCardBacks[i].hSelf, GWLP_USERDATA, (LONG_PTR)&pCardBacks[i]);
252 }
253
254 return TRUE;
255 }
256
257 case WM_COMMAND:
258 if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL)
259 {
260 INT i, num = 0;
261 for (i = 0; i < NUM_CARDBACKS; i++)
262 {
263 if (pCardBacks[i].bSelected)
264 {
265 num = pCardBacks[i].imgNum;
266 }
267 }
268
269 EndDialog(hDlg, LOWORD(wParam) == IDOK ? num : FALSE);
270 HeapFree(GetProcessHeap(), 0, pCardBacks);
271 return TRUE;
272 }
273
274 if (HIWORD(wParam) == STN_CLICKED)
275 {
276 INT i;
277 RECT rc;
278 for (i = 0; i < NUM_CARDBACKS; i++)
279 {
280 pCardBacks[i].bSelected = pCardBacks[i].hSelf == (HWND)lParam;
281
282 GetClientRect(pCardBacks[i].hSelf, &rc);
283 InvalidateRect(pCardBacks[i].hSelf, &rc, TRUE);
284 }
285
286 break;
287 }
288 }
289
290 return FALSE;
291}
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define GetProcessHeap()
Definition: compat.h:736
HANDLE HWND
Definition: compat.h:19
#define HeapAlloc
Definition: compat.h:733
#define HeapFree(x, y, z)
Definition: compat.h:735
GLsizeiptr size
Definition: glext.h:5919
const GLubyte * c
Definition: glext.h:8905
GLuint GLuint num
Definition: glext.h:9618
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
Definition: glfuncs.h:248
#define c
Definition: ke_i.h:80
__int3264 LONG_PTR
Definition: mstsclib_h.h:276
#define LOWORD(l)
Definition: pedump.c:82
#define CARDBACK_END
Definition: solitaire.h:17
#define NUM_CARDBACKS
Definition: solitaire.h:18
#define CARDBACK_START
Definition: solitaire.h:16
#define CARDBACK_RES_START
Definition: solitaire.h:19
struct _CardBack CARDBACK
LRESULT CALLBACK CardImageWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
Definition: spider.cpp:156
struct _CardBack * PCARDBACK
HWND hSelf
Definition: solitaire.cpp:37
BOOL bSelected
Definition: solitaire.cpp:41
INT imgNum
Definition: solitaire.cpp:40
WNDPROC hOldProc
Definition: solitaire.cpp:38
INT hdcNum
Definition: solitaire.cpp:39
#define SetWindowLongPtr
Definition: treelist.c:70
#define GWLP_WNDPROC
Definition: treelist.c:66
#define GWLP_USERDATA
Definition: treelist.c:63
ULONG_PTR SIZE_T
Definition: typedefs.h:80
int32_t INT
Definition: typedefs.h:58
#define HIWORD(l)
Definition: typedefs.h:247
#define IDCANCEL
Definition: winuser.h:825
#define WM_COMMAND
Definition: winuser.h:1730
#define WM_INITDIALOG
Definition: winuser.h:1729
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
#define IDOK
Definition: winuser.h:824
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)
Definition: winuser.h:2896
#define STN_CLICKED
Definition: winuser.h:2084
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)

Referenced by ShowDeckOptionsDlg().

◆ CardImageWndProc()

LRESULT CALLBACK CardImageWndProc ( HWND  hwnd,
UINT  msg,
WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 156 of file spider.cpp.

157{
159 static WNDPROC hOldProc = NULL;
160
161 if (!pCardBack)
162 return FALSE;
163
164 if (!hOldProc)
165 hOldProc = pCardBack->hOldProc;
166
167 switch (msg)
168 {
169 case WM_PAINT:
170 {
171 HDC hdc;
172 PAINTSTRUCT ps;
173 HPEN hPen, hOldPen;
174 HBRUSH hBrush, hOldBrush;
175 RECT rc;
176
177 hdc = BeginPaint(hwnd, &ps);
178
179 if (pCardBack->bSelected)
180 {
181 hPen = CreatePen(PS_SOLID, 2, RGB(0,0,0));
182 }
183 else
184 {
186 hPen = CreatePen(PS_SOLID, 2, Face);
187 }
188
189 GetClientRect(hwnd, &rc);
190 hBrush = (HBRUSH)GetStockObject(NULL_BRUSH);
191 hOldPen = (HPEN)SelectObject(hdc, hPen);
192 hOldBrush = (HBRUSH)SelectObject(hdc, hBrush);
193
194 Rectangle(hdc, rc.left+1, rc.top+1, rc.right, rc.bottom);
195
197 2,
198 2,
202 pCardBack->hdcNum * __cardwidth,
203 0,
206 SRCCOPY);
207
208 SelectObject(hdc, hOldPen);
209 SelectObject(hdc, hOldBrush);
210
211 EndPaint(hwnd, &ps);
212
213 break;
214 }
215
216 case WM_LBUTTONDOWN:
217 pCardBack->bSelected = pCardBack->bSelected ? FALSE : TRUE;
218 break;
219 }
220
221 return CallWindowProc(hOldProc, hwnd, msg, wParam, lParam);
222}
int __cardwidth
Definition: cardlib.cpp:25
int __cardheight
Definition: cardlib.cpp:26
HDC __hdcCardBitmaps
Definition: cardlib.cpp:18
#define RGB(r, g, b)
Definition: precomp.h:62
unsigned long DWORD
Definition: ntddk_ex.h:95
HDC hdc
Definition: main.c:9
static HDC
Definition: imagelist.c:92
#define CARDBACK_OPTIONS_HEIGHT
Definition: solitaire.h:21
#define CARDBACK_OPTIONS_WIDTH
Definition: solitaire.h:20
LONG right
Definition: windef.h:308
LONG bottom
Definition: windef.h:309
LONG top
Definition: windef.h:307
LONG left
Definition: windef.h:306
#define GetWindowLongPtr
Definition: treelist.c:73
HGDIOBJ WINAPI GetStockObject(_In_ int)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
Definition: dc.c:1539
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)
#define SRCCOPY
Definition: wingdi.h:333
#define NULL_BRUSH
Definition: wingdi.h:901
BOOL WINAPI Rectangle(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int)
HPEN WINAPI CreatePen(_In_ int, _In_ int, _In_ COLORREF)
#define PS_SOLID
Definition: wingdi.h:586
#define WM_PAINT
Definition: winuser.h:1610
DWORD WINAPI GetSysColor(_In_ int)
#define CallWindowProc
Definition: winuser.h:5725
#define WM_LBUTTONDOWN
Definition: winuser.h:1766
BOOL WINAPI EndPaint(_In_ HWND, _In_ const PAINTSTRUCT *)
HDC WINAPI BeginPaint(_In_ HWND, _Out_ LPPAINTSTRUCT)
#define COLOR_3DFACE
Definition: winuser.h:923

Referenced by CardBackDlgProc().

◆ DifficultyDlgProc()

INT_PTR CALLBACK DifficultyDlgProc ( HWND  hDlg,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 49 of file spider.cpp.

50{
51 switch (uMsg)
52 {
53 case WM_INITDIALOG:
55 return TRUE;
56
57 case WM_COMMAND:
58 switch(LOWORD(wParam))
59 {
60 case IDOK:
67
68 NewGame();
69 EndDialog(hDlg, TRUE);
70 return TRUE;
71
72 case IDCANCEL:
73 EndDialog(hDlg, FALSE);
74 return TRUE;
75 }
76 break;
77 }
78 return FALSE;
79}
#define IDC_DIF_FOURCOLORS
Definition: resource.h:34
#define IDC_DIF_ONECOLOR
Definition: resource.h:32
#define IDC_DIF_TWOCOLORS
Definition: resource.h:33
void NewGame(void)
Definition: solgame.cpp:18
DWORD dwDifficulty
Definition: spider.cpp:25
UINT WINAPI IsDlgButtonChecked(_In_ HWND, _In_ int)
BOOL WINAPI CheckRadioButton(_In_ HWND, _In_ int, _In_ int, _In_ int)
#define BST_CHECKED
Definition: winuser.h:197

Referenced by _tWinMain().

◆ MakePath()

void MakePath ( TCHAR szDest,
UINT  nDestLen,
const TCHAR szExt 
)

Definition at line 40 of file spider.cpp.

41{
42 TCHAR *ptr;
43
44 ptr = szDest + GetModuleFileName(GetModuleHandle(0), szDest, nDestLen) - 1;
45 while(*ptr-- != '.');
46 lstrcpy(ptr + 1, szExt);
47}
static PVOID ptr
Definition: dispmode.c:27
#define GetModuleHandle
Definition: winbase.h:3698
#define lstrcpy
Definition: winbase.h:3745
#define GetModuleFileName
Definition: winbase.h:3702
char TCHAR
Definition: xmlstorage.h:189

Referenced by _tWinMain().

◆ ShowDeckOptionsDlg()

VOID ShowDeckOptionsDlg ( HWND  hwnd)

Definition at line 294 of file spider.cpp.

295{
296 INT cardBack;
297
299 {
302 }
303}
#define IDD_CARDBACK
Definition: resource.h:28
void SetBackCardIdx(UINT uBackIdx)
Definition: cardwindow.cpp:728
void Redraw(void)
Definition: cardwindow.cpp:553
INT_PTR CALLBACK CardBackDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: spider.cpp:225
CardWindow SpiderWnd
Definition: spider.cpp:27

Referenced by WndProc().

◆ WndProc()

LRESULT CALLBACK WndProc ( HWND  hwnd,
UINT  iMsg,
WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 305 of file spider.cpp.

306{
307 static int nWidth, nHeight;
308
309 switch (iMsg)
310 {
311 case WM_CREATE:
312 {
313 // For now, the Help dialog is disabled because of lacking of HTML Help support
315
316 SpiderWnd.Create(hwnd, 0, WS_CHILD | WS_VISIBLE, 0, 0, 100, 100);
318 CreateSpider();
319
321
323
324 return 0;
325 }
326
327 case WM_DESTROY:
329 return 0;
330
331 case WM_SIZE:
332 nWidth = LOWORD(lParam);
333 nHeight = HIWORD(lParam);
334
335 MoveWindow(SpiderWnd, 0, 0, nWidth, nHeight, TRUE);
336 return 0;
337
338 case WM_GETMINMAXINFO:
339 {
340 MINMAXINFO *mmi;
341
342 mmi = (MINMAXINFO *)lParam;
343 mmi->ptMinTrackSize.x = NUM_STACKS * __cardwidth + (NUM_STACKS + 3) * X_BORDER + 12; // Border left and right of 6px
346 2 * Y_BORDER +
347 3 * __cardheight +
349 return 0;
350 }
351
352 case WM_COMMAND:
353 switch (LOWORD(wParam))
354 {
355 case IDM_GAME_NEW:
356 NewGame();
357 return 0;
358
359 case IDM_GAME_DECK:
361 return 0;
362
364 WinHelp(hwnd, szHelpPath, HELP_CONTENTS, 0);//HELP_KEY, (DWORD)"How to play");
365 return 0;
366
367 case IDM_HELP_ABOUT:
369 return 0;
370
371 case IDM_GAME_EXIT:
372 PostMessage(hwnd, WM_CLOSE, 0, 0);
373 return 0;
374 }
375
376 return 0;
377
378 case WM_CLOSE:
379 if (fGameStarted == false)
380 {
382 return 0;
383 }
384 else
385 {
386 int ret;
387
389 if (ret == IDYES)
390 {
393 }
394 }
395 return 0;
396 }
397 return DefWindowProc (hwnd, iMsg, wParam, lParam);
398}
#define IDM_HELP_ABOUT
Definition: resource.h:385
#define IDM_HELP_CONTENTS
Definition: resource.h:15
#define IDM_GAME_NEW
Definition: resource.h:10
#define IDM_GAME_DECK
Definition: resource.h:12
#define IDM_GAME_EXIT
Definition: resource.h:14
BOOL Create(HWND hwndParent, DWORD dwExStyle, DWORD dwStyle, int x, int y, int width, int height)
Definition: cardwindow.cpp:109
#define WS_CHILD
Definition: pedump.c:617
#define WS_VISIBLE
Definition: pedump.c:620
#define DefWindowProc
Definition: ros2win.h:31
int yRowStackCardOffset
Definition: solcreate.cpp:10
bool fGameStarted
Definition: solgame.cpp:15
#define Y_BORDER
Definition: solitaire.h:53
#define X_BORDER
Definition: solitaire.h:49
VOID ShowDeckOptionsDlg(HWND hwnd)
Definition: spider.cpp:294
DWORD dwAppStartTime
Definition: spider.cpp:16
#define NUM_STACKS
Definition: spider.h:21
void CreateSpider(void)
Definition: spigame.cpp:279
POINT ptMinTrackSize
Definition: winuser.h:3620
long y
Definition: polytest.cpp:48
long x
Definition: polytest.cpp:48
int ret
#define WM_CLOSE
Definition: winuser.h:1611
#define MF_BYCOMMAND
Definition: winuser.h:202
#define WinHelp
Definition: winuser.h:5854
#define HELP_QUIT
Definition: winuser.h:2404
#define WM_CREATE
Definition: winuser.h:1598
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 WM_SIZE
Definition: winuser.h:1601
#define HELP_CONTENTS
Definition: winuser.h:2395
#define SWP_NOMOVE
Definition: winuser.h:1234
#define SM_CYMENU
Definition: winuser.h:970
#define MB_YESNO
Definition: winuser.h:811
#define WM_GETMINMAXINFO
Definition: winuser.h:1630
#define MB_OK
Definition: winuser.h:784
#define PostMessage
Definition: winuser.h:5822
#define MB_ICONQUESTION
Definition: winuser.h:783
#define MessageBox
Definition: winuser.h:5812
#define MB_ICONINFORMATION
Definition: winuser.h:796
#define WM_DESTROY
Definition: winuser.h:1599
#define IDYES
Definition: winuser.h:829
#define SWP_NOZORDER
Definition: winuser.h:1237
BOOL WINAPI DestroyWindow(_In_ HWND)
BOOL WINAPI EnableMenuItem(_In_ HMENU, _In_ UINT, _In_ UINT)
#define SM_CYCAPTION
Definition: winuser.h:957
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)
#define MF_GRAYED
Definition: winuser.h:129

Referenced by _tWinMain().

Variable Documentation

◆ dwAppStartTime

DWORD dwAppStartTime

Definition at line 16 of file spider.cpp.

Referenced by WndProc().

◆ dwDifficulty

DWORD dwDifficulty

Definition at line 25 of file spider.cpp.

Referenced by CreatePlayDeck(), DifficultyDlgProc(), and WndProc().

◆ hInstance

HINSTANCE hInstance

Definition at line 18 of file spider.cpp.

Referenced by _tWinMain(), and ShowDeckOptionsDlg().

◆ hwndMain

HWND hwndMain

Definition at line 17 of file spider.cpp.

Referenced by _tWinMain().

◆ MsgAbout

TCHAR MsgAbout[128]

Definition at line 22 of file spider.cpp.

Referenced by _tWinMain(), and WndProc().

◆ MsgDeal

TCHAR MsgDeal[128]

Definition at line 24 of file spider.cpp.

Referenced by _tWinMain(), GameFinished(), and SuitStackAddProc().

◆ MsgQuit

TCHAR MsgQuit[128]

Definition at line 21 of file spider.cpp.

Referenced by _tWinMain(), and WndProc().

◆ MsgWin

TCHAR MsgWin[128]

Definition at line 23 of file spider.cpp.

Referenced by _tWinMain(), GameFinished(), and SuitStackAddProc().

◆ SpiderWnd

CardWindow SpiderWnd

◆ szAppName

TCHAR szAppName[128]

Definition at line 20 of file spider.cpp.

Referenced by _tWinMain(), and WndProc().

◆ szHelpPath

TCHAR szHelpPath[MAX_PATH]

Definition at line 14 of file spider.cpp.

Referenced by _tWinMain(), and WndProc().