[idd] helper: add simple static widget implementation
This commit is contained in:
1 parent
042450a708
commit
85e728b59e
7 files changed
+75
No files matched your search
@@ -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