| 1247 | } |
| 1248 | |
| 1249 | void CLogView::SetFont(HFONT hFont) |
| 1250 | { |
| 1251 | CListViewCtrl::SetFont(hFont); |
| 1252 | GetHeader().Invalidate(); |
| 1253 | |
| 1254 | // Trigger WM_MEASUREPOS |
| 1255 | // See: http://www.codeproject.com/Articles/1401/Changing-Row-Height-in-an-owner-drawn-Control |
| 1256 | CRect rect; |
| 1257 | GetWindowRect(&rect); |
| 1258 | WINDOWPOS wp; |
| 1259 | wp.hwnd = *this; |
| 1260 | wp.cx = rect.Width(); |
| 1261 | wp.cy = rect.Height(); |
| 1262 | wp.flags = SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOOWNERZORDER | SWP_NOZORDER; |
| 1263 | SendMessage(WM_WINDOWPOSCHANGED, 0, reinterpret_cast<LPARAM>(&wp)); |
| 1264 | } |
| 1265 | |
| 1266 | bool CLogView::GetAutoScroll() const |
| 1267 | { |
no outgoing calls
no test coverage detected