добавил пояснения еще к двум функциям
This commit is contained in:
parent
fe7446c89b
commit
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user