mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-12 10:28:08 +00:00
22 lines
363 B
C++
22 lines
363 B
C++
#include "CWidget.h"
|
|
|
|
HWND CWidget::createWindowSimple(LPCWSTR cls, LPCWSTR title, DWORD style, HWND parent)
|
|
{
|
|
return CreateWindow(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;
|
|
}
|
|
}
|