Compare commits
2 Commits
fe7446c89b
...
f96fc8d904
Author | SHA1 | Date | |
---|---|---|---|
f96fc8d904 | |||
3730dc6b48 |
@ -40,7 +40,7 @@ void Im1(HDC hdc, int cx, int cy, COLORREF color) {
|
|||||||
Polyline(hdc, p, 4);
|
Polyline(hdc, p, 4);
|
||||||
DeleteObject(hPen);
|
DeleteObject(hPen);
|
||||||
}
|
}
|
||||||
|
//треугольники в обратную сторону
|
||||||
void Im2(HDC hdc, int cx, int cy, COLORREF color) {
|
void Im2(HDC hdc, int cx, int cy, COLORREF color) {
|
||||||
HPEN hPen;
|
HPEN hPen;
|
||||||
hPen = CreatePen(PS_SOLID, 2, color);
|
hPen = CreatePen(PS_SOLID, 2, color);
|
||||||
@ -61,7 +61,7 @@ void Im2(HDC hdc, int cx, int cy, COLORREF color) {
|
|||||||
Polyline(hdc, p, 5);
|
Polyline(hdc, p, 5);
|
||||||
DeleteObject(hPen);
|
DeleteObject(hPen);
|
||||||
}
|
}
|
||||||
|
//пятиугольники
|
||||||
void Im3(HDC hdc, int cx, int cy, COLORREF color) {
|
void Im3(HDC hdc, int cx, int cy, COLORREF color) {
|
||||||
HPEN hPen;
|
HPEN hPen;
|
||||||
hPen = CreatePen(PS_SOLID, 2, color);
|
hPen = CreatePen(PS_SOLID, 2, color);
|
||||||
@ -289,7 +289,7 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
|||||||
case WM_CREATE:
|
case WM_CREATE:
|
||||||
SetTimer(hWnd, 1, 500, 0);
|
SetTimer(hWnd, 1, 500, 0);
|
||||||
break;
|
break;
|
||||||
|
//case WM TIMER - время, за которое объект преодолеет какое-либо расстояние
|
||||||
case WM_TIMER:
|
case WM_TIMER:
|
||||||
|
|
||||||
im1.x += im1.vx;
|
im1.x += im1.vx;
|
||||||
|
Loading…
Reference in New Issue
Block a user