#include "CStaticWidget.h" #include #include 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); }