[idd] helper: add simple static widget implementation

This commit is contained in:
Quantum
2025-09-15 03:56:26 -04:00
committed by Geoffrey McRae
parent 042450a708
commit 85e728b59e
7 changed files with 75 additions and 0 deletions

18
idd/LGIddHelper/CWidget.h Normal file
View File

@@ -0,0 +1,18 @@
#pragma once
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
class CWidget {
protected:
HWND m_hwnd = NULL;
HWND createWindowSimple(LPCWSTR cls, LPCWSTR title, DWORD style, HWND parent);
public:
virtual ~CWidget();
void destroy();
HWND hwnd() { return m_hwnd; }
operator HWND() { return m_hwnd; }
};