{
PAINTSTRUCT ps;
HDC hDC;
-
+ RECT clr, wir;
+ char spr[100], sir[100];
+
switch(msg)
{
case WM_LBUTTONUP:
hDC = BeginPaint(hWnd, &ps);
SelectObject(hDC, tf);
TextOut(hDC, 10, 10, "Hello World from ReactOS!", strlen("Hello World from ReactOS!"));
+ GetClientRect(hWnd, &clr);
+ GetWindowRect(hWnd, &wir);
+ sprintf(spr, "%d,%d,%d,%d ", clr.left, clr.top, clr.right, clr.bottom);
+ sprintf(sir, "%d,%d,%d,%d ", wir.left, wir.top, wir.right, wir.bottom);
+ TextOut(hDC, 10, 30, spr, 20);
+ TextOut(hDC, 10, 50, sir, 20);
EndPaint(hWnd, &ps);
break;
-
+
case WM_DESTROY:
PostQuitMessage(0);
break;
-
+
default:
return DefWindowProc(hWnd, msg, wParam, lParam);
}