MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / SetFont

Method SetFont

DebugView++/LogView.cpp:1249–1264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1247}
1248
1249void 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
1266bool CLogView::GetAutoScroll() const
1267{

Callers 7

InitializeFontMethod · 0.80
CPropertyDateWindowClass · 0.80
CPropertyListWindowClass · 0.80
OnInitDialogMethod · 0.80
AddFilterViewMethod · 0.80
SetLogFontMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected