The DefWindowProc is not called anymore on WM_SETTINGCHANGE since it can cause crashes.

This commit is contained in:
Kimmo Pekkola
2009-07-28 09:16:07 +00:00
parent 3edce908b4
commit 978988d41b
3 changed files with 5 additions and 2 deletions

View File

@ -2519,7 +2519,9 @@ LRESULT CMeterWindow::OnSettingChange(WPARAM wParam, LPARAM lParam)
{
m_Monitors.count = 0;
Refresh(false);
return DefWindowProc(m_Window, m_Message, wParam, lParam);
// Commented: Calling DefWindowProc seems to cause crash sometimes
return 0; // DefWindowProc(m_Window, m_Message, wParam, lParam);
}
/*