ReactOS 0.4.16-dev-92-g0c2cdca
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}
#define TEXT(s)
Definition: k32.h:26
HDC hdc
Definition: main.c:9
& rect
Definition: startmenu.cpp:1413
DWORD COLORREF
Definition: windef.h:300
COLORREF WINAPI SetBkColor(_In_ HDC, _In_ COLORREF)
Definition: dc.c:999
#define ExtTextOut
Definition: wingdi.h:4454
#define ETO_OPAQUE
Definition: wingdi.h:647

◆ UseNicePalette()

HPALETTE UseNicePalette ( HDC  hdc,
HPALETTE  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}
#define FALSE
Definition: types.h:117
UINT WINAPI RealizePalette(_In_ HDC)
Definition: palette.c:138
HPALETTE WINAPI SelectPalette(_In_ HDC, _In_ HPALETTE, _In_ BOOL)

Referenced by CardWindow::CardWindow(), CardWindow::Paint(), CardRegion::PrepareDragBitmaps(), CardRegion::PrepareDragBitmapsThreed(), CardButton::Redraw(), and CardWindow::SetBackColor().

Variable Documentation

◆ RestorePalette

void RestorePalette(HDC, HPALETTE) ( HDC  ,
HPALETTE   
)