ReactOS 0.4.15-dev-5666-gc548b97
spider.h
Go to the documentation of this file.
1#ifndef _SPIDER_PCH_
2#define _SPIDER_PCH_
3
4#include <cardlib.h>
5
6#include "resource.h"
7
8#define DIFFICULTY_ONE_COLOR 1
9#define DIFFICULTY_TWO_COLORS 2
10#define DIFFICULTY_FOUR_COLORS 3
11#define CARDBACK_START IDC_CARDBACK1
12#define CARDBACK_END IDC_CARDBACK12
13#define NUM_CARDBACKS (CARDBACK_END - CARDBACK_START + 1)
14#define CARDBACK_RES_START 53
15#define CARDBACK_OPTIONS_WIDTH 72
16#define CARDBACK_OPTIONS_HEIGHT 112
17
18#define X_BORDER 5
19#define Y_BORDER 5
20
21#define NUM_STACKS 10
22
23extern HWND hwndMain;
25extern TCHAR szAppName[];
26extern bool fGameStarted;
27extern int yRowStackCardOffset;
28extern DWORD dwDifficulty;
29extern TCHAR MsgDeal[];
30extern TCHAR MsgWin[];
31
32void CreateSpider(void);
33void NewGame(void);
34
35bool CARDLIBPROC RowStackDragProc(CardRegion &stackobj, int iNumCards);
36bool CARDLIBPROC RowStackDropProc(CardRegion &stackobj, const CardStack &dragcards);
37
38void CARDLIBPROC RowStackClickProc(CardRegion &stackobj, int iNumClicked);
39
40void CARDLIBPROC DeckClickProc(CardRegion &stackobj, int iNumClicked);
41void CARDLIBPROC PileDblClickProc(CardRegion &stackobj, int iNumClicked);
42
43void CARDLIBPROC PileRemoveProc(CardRegion &stackobj, int iRemoved);
44
45#endif /* _SPIDER_PCH_ */
#define CARDLIBPROC
Definition: cardlib.h:13
unsigned long DWORD
Definition: ntddk_ex.h:95
bool CARDLIBPROC RowStackDropProc(CardRegion &stackobj, const CardStack &dragcards)
void CARDLIBPROC RowStackClickProc(CardRegion &stackobj, int iNumClicked)
Definition: solgame.cpp:291
bool CARDLIBPROC RowStackDragProc(CardRegion &stackobj, int iNumCards)
Definition: solgame.cpp:104
TCHAR szAppName[]
Definition: solitaire.cpp:17
TCHAR MsgWin[]
Definition: solitaire.cpp:22
void CARDLIBPROC PileDblClickProc(CardRegion &stackobj, int iNumClicked)
Definition: solgame.cpp:452
int yRowStackCardOffset
Definition: solcreate.cpp:10
TCHAR MsgDeal[]
Definition: solitaire.cpp:23
void NewGame(void)
Definition: solgame.cpp:18
DWORD dwDifficulty
Definition: spider.cpp:25
HWND hwndMain
Definition: solitaire.cpp:12
bool fGameStarted
Definition: solgame.cpp:15
void CARDLIBPROC DeckClickProc(CardRegion &stackobj, int iNumClicked)
Definition: solgame.cpp:504
void CARDLIBPROC PileRemoveProc(CardRegion &stackobj, int iRemoved)
Definition: solgame.cpp:481
void CreateSpider(void)
Definition: spigame.cpp:279
CardWindow SpiderWnd
Definition: spider.cpp:27
char TCHAR
Definition: xmlstorage.h:189