ReactOS 0.4.15-dev-7788-g1ad9096
cardregion.cpp
Go to the documentation of this file.
1//
2// CardLib - CardRegion class
3//
4// Freeware
5// Copyright J Brown 2001
6//
7
8#include "cardlib.h"
9
10HBITMAP CreateSinkBmp(HDC hdcCompat, HDC hdc, int width, int height);
11
12void PaintRect(HDC hdc, RECT *rect, COLORREF colour);
13
14CardRegion::CardRegion(CardWindow &parent, int Id, bool visible, int x, int y, int xOffset, int yOffset)
15: id(Id), parentWnd(parent), xpos(x), ypos(y), xoffset(xOffset), yoffset(yOffset), fVisible(visible)
16{
19
20 crBackgnd = RGB(0, 64, 100);
21
25
26 fVisible = visible;
27
28 nThreedCount = 1;
29
30 Update(); //Update this stack's size+card count
31
32 hdcBackGnd = 0;
33 hbmBackGnd = 0;
34 hdcDragCard = 0;
35 hbmDragCard = 0;
36
39
42 AddCallback = 0;
44 ClickCallback = 0;
47
50
52
53 nFlashCount = 0;
54 fFlashVisible = false;
55 uFlashTimer = (UINT)-1;
56
57 fMouseDragging = false;
58
59 mxlock = CreateMutex(0, FALSE, 0);
60}
61
63{
65}
66
68{
69 crBackgnd = cr;
70}
71
73{
74 return ((realnum + nThreedCount - 1) - (realnum + nThreedCount - 1) % nThreedCount) / nThreedCount;
75}
76
78{
80}
81
82
84{
85 if(cardstack.NumCards() > 0)
86 {
87 if(xoffset > 0)
89 else
91
92 if(yoffset > 0)
94 else
96 }
97 else
98 {
101 }
102}
103
104CardRegion *CardWindow::CreateRegion(int id, bool fVisible, int x, int y, int xoffset, int yoffset)
105{
106 CardRegion *cr;
107
109 return FALSE;
110
111 cr = new CardRegion(*this, id, fVisible, x, y, xoffset, yoffset);
114
115 Regions[nNumCardRegions++] = cr;
116
117 return cr;
118}
119
120int CardRegion::GetOverlapRatio(int x, int y, int w, int h)
121{
122 RECT me, him;
123 RECT inter;
124 SetRect(&him, x, y, x+w, y+h);
126
127 //see if the specified rectangle overlaps us
128 if(IntersectRect(&inter, &me, &him))
129 {
130 int wi = inter.right - inter.left;
131 int hi = inter.bottom - inter.top;
132
133 int overlap = wi * hi;
134 int total = width * height;
135
136 int percent = (overlap << 16) / total;
137 return (percent * 100) >> 16;
138 }
139 //do not overlap
140 else
141 {
142 return 0;
143 }
144}
145
147{
148 switch(uDragType)
149 {
150 case CS_DRAG_NONE: case CS_DRAG_ALL: case CS_DRAG_TOP:
151 uDragRule = uDragType;
152 return true;
153
154 case CS_DRAG_CALLBACK:
155 uDragRule = uDragType;
157 return true;
158
159 default:
160 return false;
161 }
162}
163
165{
166 switch(uDropType)
167 {
168 case CS_DROP_NONE: case CS_DROP_ALL:
169 uDropRule = uDropType;
170 return true;
171
172 case CS_DROP_CALLBACK:
173 uDropRule = uDropType;
175 return true;
176
177 default:
178 return false;
179 }
180}
181
183{
185}
186
188{
190}
191
193{
195}
196
198{
200}
201
203{
205}
206
208{
210 UpdateSize();
212}
213
214
216{
217 if(count < 1)
218 {
219 return false;
220 }
221 else
222 {
224 return true;
225 }
226}
227
229{
230 xoffset = x;
231 yoffset = y;
232}
233
234void CardRegion::SetPos(int x, int y)
235{
236 xpos = x;
237 ypos = y;
238}
239
240void CardRegion::Show(bool fShow)
241{
242 fVisible = fShow;
243}
244
246{
247 return fVisible;
248}
249
250void CardRegion::SetPlacement(UINT xJustify, UINT yJustify, int xAdjust, int yAdjust)
251{
252 xjustify = xJustify;
253 yjustify = yJustify;
254 xadjust = xAdjust;
255 yadjust = yAdjust;
256}
257
258void CardRegion::SetFaceDirection(UINT uDirType, int nOption)
259{
260 switch(uDirType)
261 {
262 case CS_FACE_UP: case CS_FACE_DOWN: case CS_FACE_DOWNUP:
263 case CS_FACE_UPDOWN: case CS_FACE_ANY:
264 uFaceDirType = uDirType;
265 nFaceDirOption = nOption;
266
268
269 break;
270 }
271}
272
274{
275 if(pnOption)
276 *pnOption = nFaceDirOption;
277
278 return uFaceDirType;
279}
280
281void CardRegion::AdjustPosition(int winwidth, int winheight)
282{
283 Update(); //Update this stack's card count + size
284
285 switch(xjustify)
286 {
287 default: case CS_XJUST_NONE: break;
288
289 case CS_XJUST_CENTER: //centered
290 xpos = (winwidth - (width & ~0x1)) / 2;
291 xpos += xadjust;
292
293 if(xoffset < 0) xpos += (width - __cardwidth);
294
295 break;
296
297 case CS_XJUST_RIGHT: //right-aligned
298 xpos = winwidth - __cardwidth;//width - 20;
299 xpos += xadjust;
300 break;
301 }
302
303 switch(yjustify)
304 {
305 default: case CS_YJUST_NONE: break;
306
307 case CS_YJUST_CENTER: //centered
308 ypos = (winheight - height) / 2;
309 ypos += yadjust;
310 if(yoffset < 0) ypos += (height - __cardheight);
311 break;
312
313 case CS_YJUST_BOTTOM: //bottom-aligned
314 ypos = winheight - __cardheight;//height - 20;
315 ypos += yadjust;
316 break;
317 }
318
319}
320
321
322void CardRegion::Flash(int count, int milliseconds)
323{
324 if(count <= 0) return;
325
327 fFlashVisible = false;
328 uFlashTimer = SetTimer((HWND)parentWnd, (WPARAM)this, milliseconds, 0);
329
331}
332
334{
335 if(uFlashTimer != (UINT)-1)
336 {
338 nFlashCount = 0;
339 uFlashTimer = (UINT)-1;
340 fFlashVisible = true;
341 }
342}
343
345{
346 if(uFlashTimer != (UINT)-1)
347 {
349
350 if(--nFlashCount == 0)
351 {
353 uFlashTimer = (UINT)-1;
354 fFlashVisible = true;
355 }
356
358 }
359}
360
362{
363 return id;
364}
365
367{
368 switch(uImage)
369 {
370 case CS_EI_NONE:
371 case CS_EI_SUNK:
372 case CS_EI_CIRC:
373 case CS_EI_X:
374 uEmptyImage = uImage;
375 break;
376
377 default:
379 break;
380 }
381
382}
383
385{
386 if(uBackIdx >= 52 && uBackIdx <= 68)
387 nBackCardIdx = uBackIdx;
388}
389
391{
392 //make a complete copy of the specified stack..
393 cardstack = cs;
394
395 // Update the face-direction and stack-size
396 Update();
397}
398
400{
401 //return reference to our internal stack
402 return cardstack;
403}
404
405//
406// Update specified card-stack using THIS stack's
407// face direction rules!
408//
410{
411 int i, n, num;
412
413 num = cards.NumCards();
414
415 //Now apply the face direction rules..
416 switch(uFaceDirType)
417 {
418 case CS_FACE_UP:
419
420 for(i = 0; i < num; i++)
421 {
422 cards[i].SetFaceUp(true);
423 }
424
425 break;
426
427 case CS_FACE_DOWN:
428
429 for(i = 0; i < num; i++)
430 {
431 cards[i].SetFaceUp(false);
432 }
433
434 break;
435
436 case CS_FACE_DOWNUP:
437
440
441 //bottom n cards..
442 for(i = 0; i < n; i++)
443 {
444 cards[num - i - 1].SetFaceUp(false);
445 }
446
447 for(i = n; i < num; i++)
448 {
449 cards[num - i - 1].SetFaceUp(true);
450 }
451
452 break;
453
454 case CS_FACE_UPDOWN:
455
458
459 for(i = 0; i < n; i++)
460 {
461 cards[num - i - 1].SetFaceUp(true);
462 }
463
464 for(i = n; i < num; i++)
465 {
466 cards[num - i - 1].SetFaceUp(false);
467 }
468
469 break;
470
471 case CS_FACE_ANY: //cards can be any orientation
472 default:
473 break;
474 }
475}
476
477bool CardRegion::MoveCard(CardRegion *pDestStack, int nNumCards, bool fAnimate)
478{
479 HDC hdc;
480
481 int x, y;
482
483 if(pDestStack == 0) return false; //{ forcedfacedir = -1 ;return 0; }
484
485 if(nNumCards < 0 || nNumCards > cardstack.NumCards())
486 return false;
487
488 x = xpos + xoffset * (nNumApparentCards - nNumCards);
489 y = ypos + yoffset * (nNumApparentCards - nNumCards);
490
491 oldx = x;
492 oldy = y;
493
494 dragstack = cardstack.Pop(nNumCards);
495
496 //Alter the drag-stack so that it's cards are the same way up
497 //as the destination. Use the destination's drag-rules
498 //instead of this ones!!
500 temp.Push(pDestStack->GetCardStack());
501 temp.Push(dragstack);
502
503 pDestStack->UpdateFaceDir(temp);
504
505 dragstack = temp.Pop(nNumCards);
506
507 if(fAnimate)
508 {
509 iNumDragCards = nNumCards;
510 PrepareDragBitmaps(nNumCards);
511 }
512
513 Update(); //Update this stack's size+card count
514
515 if(fAnimate)
516 {
518
519 ZoomCard(hdc, x, y, pDestStack);
520
523 }
524
525 // Get a copy of the cardstack
526 CardStack cs = pDestStack->GetCardStack();
527 cs.Push(dragstack);
528
529 pDestStack->SetCardStack(cs);
530
531 //cs = pDestStack->GetCardStack();
532 //pDestStack->Update();
533 //pDestStack->UpdateFaceDir(cs);
534
535 RedrawIfNotDim(pDestStack, false);
536
537 //forcedfacedir = -1;
538 return true;
539}
540
541//
542// Simple wrappers
543//
545{
548 else
549 return cardstack.NumCards();
550}
551
553{
555
556 if(dw == WAIT_OBJECT_0)
557 {
558 //TRACE("LockStack succeeded\n");
559 return true;
560 }
561 else
562 {
563 //TRACE("LockStack failed\n");
564 return false;
565 }
566 return false;
567}
568
570{
572 {
573 //TRACE("Unlocking stack\n");
574 return true;
575 }
576 else
577 {
578 //TRACE("Unlocking stack failed\n");
579 return false;
580 }
581}
582
583bool CardRegion::PlayCard(CardRegion *pDestStack, int value, int num)
584{
585 //search the stack for the specified card value...
586 while(num--)
587 {
588 for(int i = 0; i < cardstack.NumCards(); i++)
589 {
590 if(cardstack[i].HiVal() == value)
591 {
592 //swap the card with one at top pos...
593 Card card = cardstack.RemoveCard(i);
594 cardstack.Push(card);
595
596 Redraw();
597
598 MoveCard(pDestStack, 1, true);
599 break;
600 }
601 }
602 }
603
604 return true;
605}
606
607//
608// Redraw the current stack if it has a different
609// layout than the comparison stack.
610//
611void CardRegion::RedrawIfNotDim(CardRegion *pCompare, bool fFullRedraw)
612{
613 //
614 //
615 //
616 if( pCompare->xoffset != xoffset ||
617 pCompare->yoffset != yoffset ||
618 pCompare->nThreedCount != nThreedCount ||
619 pCompare->uFaceDirType != uFaceDirType ||
620 pCompare->uFaceDirType != CS_FACE_ANY
621 )
622 {
623 if(fFullRedraw)
625 else
626 pCompare->Redraw();
627 }
628
629}
630
631//
632// SimulateDrag mimicks the complete drag+drop process.
633// It basically just a MoveCard(..), but it calls the
634// event callbacks as well.
635//
636bool CardRegion::SimulateDrag(CardRegion *pDestStack, int iNumDragCards, bool fAnimate)
637{
638 if(pDestStack == 0)
639 return false;
640
641 if(CanDragCards(iNumDragCards) != false)
642 {
643 if(pDestStack->CanDropCards(cardstack))
644 {
645 MoveCard(pDestStack, iNumDragCards, fAnimate);
646
649
650 if(pDestStack->AddCallback)
651 pDestStack->AddCallback(*pDestStack, pDestStack->cardstack);
652
653 RedrawIfNotDim(pDestStack, true);
654 }
655
656 }
657
658 return true;
659}
DWORD Id
int yOffset
Definition: appswitch.c:59
int xOffset
Definition: appswitch.c:59
int __cardwidth
Definition: cardlib.cpp:25
int __cardheight
Definition: cardlib.cpp:26
#define CS_DROP_CALLBACK
Definition: cardlib.h:35
#define CS_DRAG_ALL
Definition: cardlib.h:30
#define CS_YJUST_BOTTOM
Definition: cardlib.h:42
void(CARDLIBPROC * pClickProc)(CardRegion &stackobj, int iNumCards)
Definition: cardlib.h:87
#define CS_FACE_ANY
Definition: cardlib.h:55
bool(CARDLIBPROC * pCanDragProc)(CardRegion &stackobj, int iNumDragging)
Definition: cardlib.h:85
#define CS_DROP_ALL
Definition: cardlib.h:34
#define CS_DRAG_TOP
Definition: cardlib.h:29
void(CARDLIBPROC * pAddProc)(CardRegion &stackobj, const CardStack &cards)
Definition: cardlib.h:88
#define CS_XJUST_CENTER
Definition: cardlib.h:39
#define CS_XJUST_RIGHT
Definition: cardlib.h:38
#define CS_EI_NONE
Definition: cardlib.h:18
#define CS_FACE_DOWN
Definition: cardlib.h:52
#define CS_EI_SUNK
Definition: cardlib.h:19
#define CS_YJUST_CENTER
Definition: cardlib.h:43
bool(CARDLIBPROC * pCanDropProc)(CardRegion &stackobj, CardStack &cards)
Definition: cardlib.h:86
#define CS_FACE_UPDOWN
Definition: cardlib.h:54
#define CS_EI_X
Definition: cardlib.h:21
#define CS_YJUST_NONE
Definition: cardlib.h:41
#define CS_FACE_UP
Definition: cardlib.h:51
#define CS_FACE_DOWNUP
Definition: cardlib.h:53
#define CS_EI_CIRC
Definition: cardlib.h:20
#define CS_XJUST_NONE
Definition: cardlib.h:37
#define CS_DRAG_CALLBACK
Definition: cardlib.h:31
void(CARDLIBPROC * pRemoveProc)(CardRegion &stackobj, int iNumRemoved)
Definition: cardlib.h:89
#define CS_DROP_NONE
Definition: cardlib.h:33
#define CS_DRAG_NONE
Definition: cardlib.h:28
HBITMAP CreateSinkBmp(HDC hdcCompat, HDC hdc, int width, int height)
void PaintRect(HDC hdc, RECT *rect, COLORREF colour)
Definition: cardlib.cpp:116
#define MAXCARDSTACKS
Definition: cardwindow.h:5
int nDragCardWidth
Definition: cardregion.h:173
void SetClickProc(pClickProc proc)
Definition: cardregion.cpp:182
int nDragCardHeight
Definition: cardregion.h:174
void SetBackColor(COLORREF cr)
Definition: cardregion.cpp:67
void Flash(int count, int timeout)
Definition: cardregion.cpp:322
void CalcApparentCards()
Definition: cardregion.cpp:77
bool IsVisible()
Definition: cardregion.cpp:245
HANDLE mxlock
Definition: cardregion.h:211
bool fMouseDragging
Definition: cardregion.h:146
bool MoveCard(CardRegion *pDestStack, int nNumCards, bool fAnimate)
Definition: cardregion.cpp:477
void SetBackCardIdx(UINT uBackIdx)
Definition: cardregion.cpp:384
pRemoveProc RemoveCallback
Definition: cardregion.h:208
void UpdateSize()
Definition: cardregion.cpp:83
UINT uDragRule
Definition: cardregion.h:196
bool CanDragCards(int iNumCards)
void DoFlash()
Definition: cardregion.cpp:344
void Show(bool fShow)
Definition: cardregion.cpp:240
UINT uFaceDirType
Definition: cardregion.h:192
void SetEmptyImage(UINT uImage)
Definition: cardregion.cpp:366
bool SetDropRule(UINT uDropType, pCanDropProc proc=0)
Definition: cardregion.cpp:164
void SetClickReleaseProc(pClickProc proc)
Definition: cardregion.cpp:187
bool Lock()
Definition: cardregion.cpp:552
void RedrawIfNotDim(CardRegion *compare, bool fFullRedraw)
Definition: cardregion.cpp:611
int nBackCardIdx
Definition: cardregion.h:194
CardStack cardstack
Definition: cardregion.h:143
HBITMAP hbmDragCard
Definition: cardregion.h:179
void SetRemoveCardProc(pRemoveProc proc)
Definition: cardregion.cpp:202
pCanDragProc CanDragCallback
Definition: cardregion.h:202
UINT uFlashTimer
Definition: cardregion.h:187
bool CanDropCards(CardStack &cards)
bool PlayCard(CardRegion *pDestStack, int value, int num)
Definition: cardregion.cpp:583
bool SetDragRule(UINT uDragType, pCanDragProc proc=0)
Definition: cardregion.cpp:146
void ReleaseDragBitmaps(void)
void PrepareDragBitmaps(int numtodrag)
void SetPlacement(UINT xJustify, UINT yJustify, int xAdjust, int yAdjust)
Definition: cardregion.cpp:250
void SetAddCardProc(pAddProc proc)
Definition: cardregion.cpp:197
CardRegion(CardWindow &parent, int id, bool fVisible, int x, int y, int xOffset, int yOffset)
Definition: cardregion.cpp:14
int nFaceDirOption
Definition: cardregion.h:193
bool fVisible
Definition: cardregion.h:183
pClickProc ClickCallback
Definition: cardregion.h:204
bool SetThreedCount(int count)
Definition: cardregion.cpp:215
void Redraw()
int xjustify
Definition: cardregion.h:159
void SetFaceDirection(UINT uDirType, int nOption)
Definition: cardregion.cpp:258
int yjustify
Definition: cardregion.h:160
void AdjustPosition(int winwidth, int winheight)
Definition: cardregion.cpp:281
void SetCardStack(const CardStack &cs)
Definition: cardregion.cpp:390
const CardStack & GetCardStack()
Definition: cardregion.cpp:399
int iNumDragCards
Definition: cardregion.h:167
void SetPos(int x, int y)
Definition: cardregion.cpp:234
void SetOffsets(int x, int y)
Definition: cardregion.cpp:228
bool fFlashVisible
Definition: cardregion.h:186
int GetOverlapRatio(int x, int y, int width, int height)
Definition: cardregion.cpp:120
UINT uDropRule
Definition: cardregion.h:197
int nFlashCount
Definition: cardregion.h:185
UINT uEmptyImage
Definition: cardregion.h:191
HDC hdcBackGnd
Definition: cardregion.h:176
int NumCards() const
Definition: cardregion.cpp:544
HDC hdcDragCard
Definition: cardregion.h:178
int nThreedCount
Definition: cardregion.h:182
void Update()
Definition: cardregion.cpp:207
pClickProc DblClickCallback
Definition: cardregion.h:206
UINT GetFaceDirection(int *pnOption)
Definition: cardregion.cpp:273
CardStack dragstack
Definition: cardregion.h:144
bool UnLock()
Definition: cardregion.cpp:569
pAddProc AddCallback
Definition: cardregion.h:207
bool SimulateDrag(CardRegion *pDestStack, int nNumCards, bool fAnimate)
Definition: cardregion.cpp:636
void ZoomCard(HDC hdc, int xpos, int ypos, CardRegion *dest)
pCanDropProc CanDropCallback
Definition: cardregion.h:203
int nNumApparentCards
Definition: cardregion.h:181
CardWindow & parentWnd
Definition: cardregion.h:141
void UpdateFaceDir(CardStack &cards)
Definition: cardregion.cpp:409
void SetDblClickProc(pClickProc proc)
Definition: cardregion.cpp:192
HBITMAP hbmBackGnd
Definition: cardregion.h:177
pClickProc ClickReleaseCallback
Definition: cardregion.h:205
COLORREF crBackgnd
Definition: cardregion.h:189
void StopFlash()
Definition: cardregion.cpp:333
int NumCards() const
Definition: cardstack.h:14
void Push(const Card card)
Definition: cardstack.cpp:83
Card RemoveCard(size_t index)
Definition: cardstack.cpp:172
Card Pop()
Definition: cardstack.cpp:127
UINT nBackCardIdx
Definition: cardwindow.h:94
COLORREF crBackgnd
Definition: cardwindow.h:109
friend class CardRegion
Definition: cardwindow.h:15
CardRegion * CreateRegion(int id, bool fVisible, int x, int y, int xoffset, int yoffset)
Definition: cardregion.cpp:104
CardRegion * Regions[MAXCARDSTACKS]
Definition: cardwindow.h:103
int nNumCardRegions
Definition: cardwindow.h:104
void Redraw(void)
Definition: cardwindow.cpp:553
Definition: card.h:28
#define FALSE
Definition: types.h:117
#define CloseHandle
Definition: compat.h:739
#define RGB(r, g, b)
Definition: precomp.h:62
r parent
Definition: btrfs.c:3010
unsigned long DWORD
Definition: ntddk_ex.h:95
size_t total
GLint GLint xoffset
Definition: gl.h:1547
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
GLuint GLuint GLsizei count
Definition: gl.h:1545
GLint GLint GLsizei GLsizei height
Definition: gl.h:1546
GLint GLint GLsizei width
Definition: gl.h:1546
GLint GLint GLint yoffset
Definition: gl.h:1547
GLdouble n
Definition: glext.h:7729
GLuint GLuint num
Definition: glext.h:9618
GLubyte GLubyte GLubyte GLubyte w
Definition: glext.h:6102
GLuint id
Definition: glext.h:5910
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:7723
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
Definition: i386-dis.c:442
REFIID LPVOID DWORD_PTR dw
Definition: atlbase.h:40
HDC hdc
Definition: main.c:9
static HBITMAP
Definition: button.c:44
static HDC
Definition: imagelist.c:92
#define min(a, b)
Definition: monoChain.cc:55
unsigned int UINT
Definition: ndis.h:50
static HANDLE proc()
Definition: pdb.c:34
static calc_node_t temp
Definition: rpn_ieee.c:38
& rect
Definition: startmenu.cpp:1413
LONG right
Definition: windef.h:308
LONG bottom
Definition: windef.h:309
LONG top
Definition: windef.h:307
LONG left
Definition: windef.h:306
DWORD WINAPI WaitForSingleObject(IN HANDLE hHandle, IN DWORD dwMilliseconds)
Definition: synch.c:82
BOOL WINAPI DECLSPEC_HOTPATCH ReleaseMutex(IN HANDLE hMutex)
Definition: synch.c:618
Definition: pdh_main.c:94
#define CreateMutex
Definition: winbase.h:3691
#define WAIT_OBJECT_0
Definition: winbase.h:406
UINT_PTR WPARAM
Definition: windef.h:207
DWORD COLORREF
Definition: windef.h:300
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
UINT_PTR WINAPI SetTimer(_In_opt_ HWND, _In_ UINT_PTR, _In_ UINT, _In_opt_ TIMERPROC)
BOOL WINAPI IntersectRect(_Out_ LPRECT, _In_ LPCRECT, _In_ LPCRECT)
HDC WINAPI GetDC(_In_opt_ HWND)
BOOL WINAPI KillTimer(_In_opt_ HWND, _In_ UINT_PTR)
BOOL WINAPI SetRect(_Out_ LPRECT, _In_ int, _In_ int, _In_ int, _In_ int)