26 HPALETTE hPal, hOldPal;
37 pal.logpal.palVersion = 0x300;
38 pal.logpal.palNumEntries = 6;
40 pal.entry[1] =
PALENTRY(255,255,255);
41 pal.entry[2] =
PALENTRY(128,128,128);
125 BYTE bits[3][3] = {{0,1,2},{3,4,5},{6,1,2}};
131 } bmi = {{
sizeof(
BITMAPINFOHEADER),3,3,1,8,
BI_RGB,0,92,92,6,6},
132 {{0,0,0,0},{255,255,255,0},{255,0,0,0},
133 {0,255,0,0},{0,0,255,0},{128,128,128,0}}};
FORCEINLINE PALETTEENTRY PALENTRY(BYTE r, BYTE g, BYTE b)
GLdouble GLdouble GLdouble r
GLboolean GLboolean GLboolean b
GLenum GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * bits
__kernel_entry W32KAPI HBITMAP APIENTRY NtGdiSelectBitmap(_In_ HDC hdc, _In_ HBITMAP hbm)
#define WS_OVERLAPPEDWINDOW
HPALETTE WINAPI NtUserSelectPalette(HDC hDC, HPALETTE hpal, BOOL ForceBackground)
DWORD WINAPI GetLastError(void)
HGDIOBJ WINAPI GetStockObject(_In_ int)
UINT WINAPI RealizePalette(_In_ HDC)
HPALETTE WINAPI CreatePalette(_In_reads_(_Inexpressible_(2 *sizeof(WORD)+plpal->palNumEntries *sizeof(PALETTEENTRY))) const LOGPALETTE *)
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
COLORREF WINAPI GetNearestColor(_In_ HDC, _In_ COLORREF)
int WINAPI FillRect(HDC, LPCRECT, HBRUSH)
HBITMAP WINAPI CreateDIBitmap(_In_ HDC hdc, _In_opt_ const BITMAPINFOHEADER *pbmih, _In_ DWORD fdwInit, _In_opt_ const VOID *pvInit, _In_opt_ const BITMAPINFO *pbmi, _In_ UINT uUsage)
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
HBRUSH WINAPI GetSysColorBrush(_In_ int)
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
HDC WINAPI GetDC(_In_opt_ HWND)
#define CreateWindowW(a, b, c, d, e, f, g, h, i, j, k)
BOOL WINAPI DestroyWindow(_In_ HWND)