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