ReactOS  0.4.13-dev-79-gcd489d8
cardbutton.cpp File Reference
#include "cardlib.h"
Include dependency graph for cardbutton.cpp:

Go to the source code of this file.

Functions

HPALETTE UseNicePalette (HDC, HPALETTE)
 
void PaintRect (HDC hdc, RECT *rect, COLORREF colour)
 

Variables

void RestorePalette (HDC, HPALETTE)
 

Function Documentation

◆ PaintRect()

void PaintRect ( HDC  hdc,
RECT rect,
COLORREF  colour 
)

Definition at line 116 of file cardlib.cpp.

117 {
118  COLORREF oldcr = SetBkColor(hdc, colour);
119  ExtTextOut(hdc, 0, 0, ETO_OPAQUE, rect, TEXT(""), 0, 0);
120  SetBkColor(hdc, oldcr);
121 }
& rect
Definition: startmenu.cpp:1413
COLORREF WINAPI SetBkColor(_In_ HDC, _In_ COLORREF)
Definition: dc.c:975
#define ETO_OPAQUE
Definition: wingdi.h:646
DWORD COLORREF
Definition: windef.h:285
#define ExtTextOut
Definition: wingdi.h:4432
HDC hdc
Definition: main.c:9
#define TEXT(s)
Definition: k32.h:26

Referenced by CardButton::DrawRect().

◆ UseNicePalette()

HPALETTE UseNicePalette ( HDC  ,
HPALETTE   
)

Definition at line 14 of file cardwindow.cpp.

15 {
16  HPALETTE hOld;
17 
18  hOld = SelectPalette(hdc, hPalette, FALSE);
20 
21  return hOld;
22 }
HPALETTE WINAPI SelectPalette(_In_ HDC, _In_ HPALETTE, _In_ BOOL)
HDC hdc
Definition: main.c:9
UINT WINAPI RealizePalette(_In_ HDC)
Definition: palette.c:138

Referenced by CardButton::Redraw().

Variable Documentation

◆ RestorePalette

void RestorePalette(HDC, HPALETTE)

Referenced by CardButton::Redraw().