[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

+15
View File
@@ -0,0 +1,15 @@
#include "CStaticWidget.h"
#include <commctrl.h>
#include <CDebug.h>
CStaticWidget::CStaticWidget(LPCWSTR title, DWORD style, HWND parent)
{
m_hwnd = createWindowSimple(WC_STATIC, title, style, parent);
if (!m_hwnd)
DEBUG_ERROR_HR(GetLastError(), "Failed to create static widget");
}
void CStaticWidget::setText(LPCWSTR text)
{
SetWindowText(m_hwnd, text);
}