MCPcopy Create free account
hub / github.com/ALTaleX531/OpenGlass / NotifySettingsChange

Method NotifySettingsChange

OpenGlassGUI/MainFrame.Core.cpp:171–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169 }
170
171 void MainFrame::NotifySettingsChange(ChangeType type)
172 {
173 if (!m_dwmWindow || !IsWindow(m_dwmWindow))
174 {
175 m_dwmWindow = FindWindowW(L"Dwm", nullptr);
176 }
177 HWND notificationWindow = m_dwmWindow;
178 if (notificationWindow)
179 {
180 if (type == ChangeType::Colorization || type == ChangeType::Both)
181 SendNotifyMessage(notificationWindow, WM_DWMCOLORIZATIONCOLORCHANGED, 0, 0);
182
183 if (type == ChangeType::Theme || type == ChangeType::Both)
184 SendNotifyMessage(notificationWindow, WM_THEMECHANGED, 0, 0);
185 }
186 }
187
188 void MainFrame::SetDirty(bool dirty)
189 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected