More painting fixes.

svn path=/trunk/; revision=3413
This commit is contained in:
David Welch 2002-08-27 23:32:21 +00:00
parent 25788364e8
commit 78126b68a6
2 changed files with 7 additions and 0 deletions

View file

@ -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);

View file

@ -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