| 69 | } |
| 70 | |
| 71 | void GetBorderRect(HWND hWnd, LPRECT lpRect) |
| 72 | { |
| 73 | RECT clientRct; |
| 74 | RECT windowRct; |
| 75 | GetClientRect(hWnd, &clientRct); |
| 76 | ClientToScreen(hWnd, (LPPOINT)&clientRct.left); |
| 77 | ClientToScreen(hWnd, (LPPOINT)&clientRct.right); |
| 78 | GetWindowRect(hWnd, &windowRct); |
| 79 | if ( lpRect ) |
| 80 | { |
| 81 | lpRect->left = clientRct.left - windowRct.left; |
| 82 | lpRect->top = clientRct.top - windowRct.top; |
| 83 | lpRect->right = windowRct.right - clientRct.right; |
| 84 | lpRect->bottom = windowRct.bottom - clientRct.bottom; |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | void GetBorderSize(HWND hWnd, LPSIZE lpSize) |
| 89 | { |