#include "CButton.h" #include #include CButton::CButton(LPCWSTR title, DWORD style, HWND parent) { m_hwnd = createWindowSimple(WC_BUTTON, title, style, parent); if (!m_hwnd) DEBUG_ERROR_HR(GetLastError(), "Failed to create button"); }