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

Function OnSettingChange

Libraries/TabbingFramework/SimpleDlgTabCtrls.h:118–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116 END_MSG_MAP()
117
118 LRESULT OnSettingChange(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
119 {
120 // Initialize font
121 if( !m_font.IsNull() ) m_font.DeleteObject();
122 LOGFONT lf = { 0 };
123 lf.lfHeight = ::GetSystemMetrics(SM_CYHSCROLL) - CYMARGIN;
124 lf.lfWeight = FW_NORMAL;
125 lf.lfCharSet = DEFAULT_CHARSET;
126 ::lstrcpy(lf.lfFaceName, _T("Arial"));
127 m_font.CreateFontIndirect(&lf);
128 /*
129 NONCLIENTMETRICS ncm = { 0 };
130 ncm.cbSize = sizeof(ncm);
131 ::SystemParametersInfo(SPI_GETNONCLIENTMETRICS, 0, &ncm, 0);
132 ncm.lfSmCaptionFont.lfWeight = FW_NORMAL;
133 m_font.CreateFontIndirect(&ncm.lfSmCaptionFont);
134 */
135
136 m_settings.iPadding = CXOFFSET + 3;
137 m_settings.iMargin = -CXOFFSET;
138
139 UpdateLayout();
140 Invalidate();
141 return 0;
142 }
143
144 // Overrides from CCustomTabCtrl
145 void Initialize(void)

Callers

nothing calls this directly

Calls 3

UpdateLayoutFunction · 0.85
CreateFontIndirectMethod · 0.80
IsNullMethod · 0.45

Tested by

no test coverage detected