[idd] helper: add simple static widget implementation

This commit is contained in:
Quantum authored and Geoffrey McRae committed 2025-09-17 18:05:00 +10:00
1 parent 042450a708
commit 85e728b59e
7 files changed
+75

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
#include "CWidget.h"
HWND CWidget::createWindowSimple(LPCWSTR cls, LPCWSTR title, DWORD style, HWND parent)
{
return CreateWindow(cls, title, style, 0, 0, 0, 0, parent,
NULL, (HINSTANCE)GetModuleHandle(NULL), NULL);
}
CWidget::~CWidget()
{
destroy();
}
void CWidget::destroy()
{
if (m_hwnd)
{
DestroyWindow(m_hwnd);
m_hwnd = NULL;
}
}