mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-12 02:18:12 +00:00
[idd] helper: implement basic config class
This commit is contained in:
20
idd/LGIddHelper/CConfigWindow.h
Normal file
20
idd/LGIddHelper/CConfigWindow.h
Normal 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); }
|
||||
};
|
Reference in New Issue
Block a user