Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
97ea158b36 | |||
3cd919c57c | |||
766149650c |
@ -147,6 +147,28 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
|||||||
PAINTSTRUCT ps;
|
PAINTSTRUCT ps;
|
||||||
HDC hdc = BeginPaint(hWnd, &ps);
|
HDC hdc = BeginPaint(hWnd, &ps);
|
||||||
// TODO: Добавьте сюда любой код прорисовки, использующий HDC...
|
// TODO: Добавьте сюда любой код прорисовки, использующий HDC...
|
||||||
|
|
||||||
|
MoveToEx(hdc, 100, 300, NULL);
|
||||||
|
LineTo(hdc, 300, 300);
|
||||||
|
LineTo(hdc, 300, 200);
|
||||||
|
LineTo(hdc, 100, 200);
|
||||||
|
LineTo(hdc, 100, 300);
|
||||||
|
|
||||||
|
//крыша домика
|
||||||
|
MoveToEx(hdc, 100, 200, NULL);
|
||||||
|
LineTo(hdc, 200, 100);
|
||||||
|
LineTo(hdc, 300, 200);
|
||||||
|
|
||||||
|
MoveToEx(hdc, 150, 250, NULL);
|
||||||
|
LineTo(hdc, 200, 250);
|
||||||
|
LineTo(hdc, 200, 290);
|
||||||
|
LineTo(hdc, 150, 290);
|
||||||
|
LineTo(hdc, 150, 250);
|
||||||
|
|
||||||
|
MoveToEx(hdc, 170, 250, NULL);
|
||||||
|
LineTo(hdc, 170, 290);
|
||||||
|
MoveToEx(hdc, 150, 270, NULL);
|
||||||
|
LineTo(hdc, 200, 270);
|
||||||
EndPaint(hWnd, &ps);
|
EndPaint(hWnd, &ps);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user