mirror of
https://github.com/reactos/reactos.git
synced 2024-08-28 14:18:41 +00:00
More painting fixes.
svn path=/trunk/; revision=3413
This commit is contained in:
parent
25788364e8
commit
78126b68a6
|
@ -63,11 +63,16 @@ LRESULT CALLBACK MainWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
|||
{
|
||||
PAINTSTRUCT ps;
|
||||
HDC hDC;
|
||||
HFONT tf;
|
||||
|
||||
switch(msg)
|
||||
{
|
||||
case WM_PAINT:
|
||||
hDC = BeginPaint(hWnd, &ps);
|
||||
tf = CreateFontA(14, 0, 0, TA_BASELINE, FW_NORMAL, FALSE, FALSE, FALSE,
|
||||
ANSI_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS,
|
||||
DEFAULT_QUALITY, FIXED_PITCH|FF_DONTCARE, "Timmons");
|
||||
SelectObject(hDC, tf);
|
||||
TextOut(hDC, 10, 10, "Hello World from ReactOS!",
|
||||
strlen("Hello World from ReactOS!"));
|
||||
EndPaint(hWnd, &ps);
|
||||
|
|
|
@ -144,5 +144,7 @@ W32kGetRegionData(HRGN hrgn,
|
|||
DWORD count,
|
||||
LPRGNDATA rgndata);
|
||||
HRGN REGION_CropRgn(HRGN hDst, HRGN hSrc, const PRECT lpRect, PPOINT lpPt);
|
||||
HRGN STDCALL
|
||||
UnsafeW32kCreateRectRgnIndirect(CONST PRECT rc);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue