[idd] helper: implement basic config class

This commit is contained in:
Quantum
2025-09-14 16:04:25 -04:00
committed by Geoffrey McRae
parent 9009217366
commit 042450a708
8 changed files with 119 additions and 8 deletions

View File

@@ -0,0 +1,20 @@
#pragma once
#include "CWindow.h"
#include <functional>
class CConfigWindow : public CWindow
{
static ATOM s_atom;
std::function<void()> m_onDestroy;
virtual LRESULT handleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam) override;
virtual LRESULT onCreate() override;
virtual LRESULT onFinal() override;
public:
CConfigWindow();
static bool registerClass();
void onDestroy(std::function<void()> func) { m_onDestroy = std::move(func); }
};