| 597 | } |
| 598 | |
| 599 | void |
| 600 | mswin_message_window_size(HWND hWnd, LPSIZE sz) |
| 601 | { |
| 602 | PNHMessageWindow data; |
| 603 | RECT rt, client_rt; |
| 604 | |
| 605 | GetWindowRect(hWnd, &rt); |
| 606 | |
| 607 | sz->cx = rt.right - rt.left; |
| 608 | sz->cy = rt.bottom - rt.top; |
| 609 | |
| 610 | data = (PNHMessageWindow) GetWindowLong(hWnd, GWL_USERDATA); |
| 611 | if (data) { |
| 612 | /* set size to accommodate MSG_VISIBLE_LINES, highligh rectangle and |
| 613 | horizontal scroll bar (difference between window rect and client |
| 614 | rect */ |
| 615 | GetClientRect(hWnd, &client_rt); |
| 616 | sz->cy = sz->cy - (client_rt.bottom - client_rt.top) |
| 617 | + data->yChar * MSG_VISIBLE_LINES + 4; |
| 618 | } |
| 619 | } |
no outgoing calls
no test coverage detected