0

I am trying to use WM_SETTINGCHANGE for the first time. Example:

void CChristianLifeMinistryEditorDlg::OnSettingChange(UINT uFlags, LPCTSTR lpszSection)
{
    __super::OnSettingChange(uFlags, lpszSection);

    if (lpszSection == L"ImmersiveColorSet")
    {
        // Dark / Light theme changed
        if (m_pWebBrowser != nullptr)
        {
            m_pWebBrowser->RefreshContextMenuHandler();
        }
    }
}

When I do AfxMessageBox(lpszSection) it displays "ImmersiveColorSet", yet my if statement is not detected. Why?

Andrew Truckle
  • 17,769
  • 16
  • 66
  • 164

0 Answers0