mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-13 02:48:23 +00:00
[idd] helper: add simple static widget implementation
This commit is contained in:
15
idd/LGIddHelper/CStaticWidget.cpp
Normal file
15
idd/LGIddHelper/CStaticWidget.cpp
Normal 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);
|
||||
}
|
Reference in New Issue
Block a user