const TCHAR* CLASS_NAME = _T("LineTestClass");
-int WINAPI
+int WINAPI
WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpszCmdLine,
HDC hDC;
RECT clr;
HBRUSH hbr;
-
+
switch(msg)
{
case WM_PAINT:
DrawLines(hDC);
EndPaint(hWnd, &ps);
break;
-
+
case WM_DESTROY:
PostQuitMessage(0);
break;
-
+
default:
return DefWindowProc(hWnd, msg, wParam, lParam);
}