Windows message for changing color scheme
-
There is a windows message to know when windows scheme has changed from Windows 7 to Windows classic ? If yes, which is ? I have tried
ON_WM_SETTINGCHANGE
, but this one has fired several times, not just once ... -
There is a windows message to know when windows scheme has changed from Windows 7 to Windows classic ? If yes, which is ? I have tried
ON_WM_SETTINGCHANGE
, but this one has fired several times, not just once ... -
Do you mean this: https://msdn.microsoft.com/en-us/library/82w28432.aspx[^]?
-
There is a windows message to know when windows scheme has changed from Windows 7 to Windows classic ? If yes, which is ? I have tried
ON_WM_SETTINGCHANGE
, but this one has fired several times, not just once ...After few trials, I ended using this code, which seem to work:
void CMainFrame::OnSettingChange(UINT uFlags, LPCTSTR lpszSection)
{
CFrameWnd::OnSettingChange(uFlags, lpszSection);// TODO: Add your message handler code here if(SPI\_SETWORKAREA == uFlags) // do the work
}
In case that anyone need it ...