- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
RECT rect;
GetWindowRect(hWnd, &rect);
int iWidth = rect.right - rect.left;
int iHeight = rect.bottom - rect.top;
Line(hDC, 0, 0, 5000, 0);
Line(hDC, 0, 0, 0, 5000);
Line(hDC, 0, iHeight - 1, iWidth, iHeight - 1);
Line(hDC, iWidth - 1, 0, iWidth - 1, iHeight - 1);
Но это только догадка. Может быть, по заданию так и надо было.