void PaintRect(HDC hdc, RECT *rect, COLORREF colour);\r
\r
CardRegion::CardRegion(CardWindow &parent, int Id, bool visible, int x, int y, int xOffset, int yOffset) \r
-: parentWnd(parent), id(Id), fVisible(visible), xpos(x), ypos(y), xoffset(xOffset), yoffset(yOffset)\r
+: id(Id), parentWnd(parent), xpos(x), ypos(y), xoffset(xOffset), yoffset(yOffset), fVisible(visible)\r
{\r
width = __cardwidth;\r
height = __cardheight;\r
\r
nFlashCount = 0;\r
fFlashVisible = false;\r
- uFlashTimer = -1;\r
+ uFlashTimer = (UINT)-1;\r
\r
fMouseDragging = false;\r
\r
\r
void CardRegion::StopFlash()\r
{\r
- if(uFlashTimer != -1)\r
+ if(uFlashTimer != (UINT)-1)\r
{\r
KillTimer((HWND)parentWnd, uFlashTimer);\r
nFlashCount = 0;\r
- uFlashTimer = -1;\r
+ uFlashTimer = (UINT)-1;\r
fFlashVisible = true;\r
}\r
}\r
\r
void CardRegion::DoFlash()\r
{\r
- if(uFlashTimer != -1)\r
+ if(uFlashTimer != (UINT)-1)\r
{\r
fFlashVisible = !fFlashVisible;\r
\r
if(--nFlashCount == 0)\r
{\r
KillTimer((HWND)parentWnd, uFlashTimer);\r
- uFlashTimer = -1;\r
+ uFlashTimer = (UINT)-1;\r
fFlashVisible = true;\r
}\r
\r
}\r
\r
return true;\r
-}
\ No newline at end of file
+}\r