ReactOS  0.4.15-dev-3207-ga415bd4
solcreate.cpp
Go to the documentation of this file.
1 #include "solitaire.h"
2 
7 
11 
12 void CreateSol()
13 {
14  int i;
15 
16 // hbmBitmap = (HBITMAP)LoadImage(0,"test.bmp",IMAGE_BITMAP,0,0,LR_LOADFROMFILE);
17 // SolWnd.SetBackImage(hbmBitmap);
18 
19  activepile.Clear();
20 
21  // Compute the value for yRowStackCardOffset based on the height of the card, so the card number isn't hidden on larger cards
23 
32 
40 
41  //
42  // Create the suit stacks
43  //
44  for(i = 0; i < 4; i++)
45  {
49 
53 
55  }
56 
57  //
58  // Create the row stacks
59  //
60  for(i = 0; i < NUM_ROW_STACKS; i++)
61  {
65 
68 
70 
75  }
76 }
bool CARDLIBPROC SuitStackDropProc(CardRegion &stackobj, CardStack &dragcards)
Definition: solgame.cpp:235
void CARDLIBPROC PileRemoveProc(CardRegion &stackobj, int iItems)
Definition: solgame.cpp:481
void SetFaceDirection(UINT uDirType, int nOption)
Definition: cardregion.cpp:258
void CARDLIBPROC SuitStackAddProc(CardRegion &stackobj, const CardStack &added)
Definition: solgame.cpp:346
#define X_BORDER
Definition: solitaire.h:49
HDC hdcBitmap
Definition: solcreate.cpp:9
#define SUIT_ID
Definition: solitaire.h:41
bool CARDLIBPROC RowStackDropProc(CardRegion &stackobj, CardStack &dragcards)
Definition: solgame.cpp:128
#define CS_DRAG_NONE
Definition: cardlib.h:28
static HDC
Definition: imagelist.c:92
#define CS_DRAG_CALLBACK
Definition: cardlib.h:31
#define CS_EI_SUNK
Definition: cardlib.h:19
void Clear()
Definition: cardstack.cpp:37
int yRowStackCardOffset
Definition: solcreate.cpp:10
void SetPlacement(UINT xJustify, UINT yJustify, int xAdjust, int yAdjust)
Definition: cardregion.cpp:250
CardRegion * pDeck
Definition: solcreate.cpp:3
CardRegion * pSuitStack[4]
Definition: solcreate.cpp:5
void CreateSol()
Definition: solcreate.cpp:12
#define Y_ROWSTACK_BORDER
Definition: solitaire.h:55
void CARDLIBPROC SuitStackClickProc(CardRegion &stackobj, int iNumClicked)
Definition: solgame.cpp:276
void CARDLIBPROC RowStackClickProc(CardRegion &stackobj, int iNumClicked)
Definition: solgame.cpp:291
void SetDblClickProc(pClickProc proc)
Definition: cardregion.cpp:192
#define DECK_ID
Definition: solitaire.h:39
#define CS_EI_NONE
Definition: cardlib.h:18
#define ROW_ID
Definition: solitaire.h:42
void SetEmptyImage(UINT uImage)
Definition: cardregion.cpp:366
#define CS_EI_CIRC
Definition: cardlib.h:20
bool SetThreedCount(int count)
Definition: cardregion.cpp:215
#define Y_BORDERWITHFRAME
Definition: solitaire.h:54
HBITMAP hbmBitmap
Definition: solcreate.cpp:8
#define X_ROWSTACK_BORDER
Definition: solitaire.h:51
bool SetDragRule(UINT uDragType, pCanDragProc proc=0)
Definition: cardregion.cpp:146
#define X_SUITSTACK_BORDER
Definition: solitaire.h:52
#define CS_XJUST_CENTER
Definition: cardlib.h:39
#define PILE_ID
Definition: solitaire.h:40
#define NUM_ROW_STACKS
Definition: solitaire.h:38
#define CS_FACE_DOWN
Definition: cardlib.h:52
void CARDLIBPROC DeckClickProc(CardRegion &stackobj, int iNumClicked)
Definition: solgame.cpp:504
void CARDLIBPROC RowStackDblClickProc(CardRegion &stackobj, int iNumClicked)
Definition: solgame.cpp:403
#define CS_DRAG_TOP
Definition: cardlib.h:29
#define CS_DEFXOFF
Definition: cardlib.h:23
#define CS_DROP_NONE
Definition: cardlib.h:33
void CARDLIBPROC PileClickProc(CardRegion &stackobj, int iNumClicked)
Definition: solgame.cpp:438
CardRegion * CreateRegion(int id, bool fVisible, int x, int y, int xoffset, int yoffset)
Definition: cardregion.cpp:104
void SetClickProc(pClickProc proc)
Definition: cardregion.cpp:182
CardStack activepile
Definition: solgame.cpp:12
int __cardwidth
Definition: cardlib.cpp:25
#define CS_DROP_CALLBACK
Definition: cardlib.h:35
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 CS_FACE_DOWNUP
Definition: cardlib.h:53
void CARDLIBPROC PileDblClickProc(CardRegion &stackobj, int iNumClicked)
Definition: solgame.cpp:452
#define X_PILE_BORDER
Definition: solitaire.h:50
void SetAddCardProc(pAddProc proc)
Definition: cardregion.cpp:197
void SetRemoveCardProc(pRemoveProc proc)
Definition: cardregion.cpp:202
bool SetDropRule(UINT uDropType, pCanDropProc proc=0)
Definition: cardregion.cpp:164
int __cardheight
Definition: cardlib.cpp:26
static HBITMAP
Definition: button.c:44
CardRegion * pRowStack[NUM_ROW_STACKS]
Definition: solcreate.cpp:6
bool CARDLIBPROC RowStackDragProc(CardRegion &stackobj, int iNumDragCards)
Definition: solgame.cpp:104
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:31
CardWindow SolWnd
Definition: solitaire.cpp:33
CardRegion * pPile
Definition: solcreate.cpp:4