Compare commits

..

No commits in common. "f96fc8d9048f7769a1d13e592d68bf64bb804053" and "fe7446c89b4b567ba9690acacd8402a52fd9ff9c" have entirely different histories.

View File

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