[idd] helper: send message over pipe when settings changed

This commit is contained in:
Quantum
2026-06-05 00:00:45 -04:00
committed by Geoffrey McRae
parent e4e211f07a
commit 0664e510a2
8 changed files with 50 additions and 9 deletions

View File

@@ -64,6 +64,8 @@ class CConfigWindow : public CWindow
std::unique_ptr<CCheckbox> m_prefNoGPU;
std::function<void()> m_onDestroy;
std::function<void()> m_onSettingChange;
double m_scale;
Microsoft::WRL::Wrappers::HandleT<FontTraits> m_font;
CRegistrySettings m_settings;
@@ -75,6 +77,7 @@ class CConfigWindow : public CWindow
void updateFont();
int updateModeList(int wanted = -1);
void onModeListSelectChange();
void sendSettingChange() { if (m_onSettingChange) m_onSettingChange(); }
virtual LRESULT handleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam) override;
virtual LRESULT onCreate() override;
@@ -87,4 +90,5 @@ public:
static bool registerClass();
void onDestroy(std::function<void()> func) { m_onDestroy = std::move(func); }
void onSettingChange(std::function<void()> func) { m_onSettingChange = std::move(func); }
};