Files
LookingGlass/idd/LGIddHelper/CWidget.cpp
2025-11-07 00:28:20 +11:00

22 lines
393 B
C++

#include "CWidget.h"
HWND CWidget::createWindowSimple(LPCWSTR cls, LPCWSTR title, DWORD style, HWND parent, DWORD dwExStyle)
{
return CreateWindowEx(dwExStyle, 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;
}
}