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:
21
idd/LGIddHelper/CWidget.cpp
Normal file
21
idd/LGIddHelper/CWidget.cpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user