mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-11 18:08:08 +00:00
[idd] helper: add simple static widget implementation
This commit is contained in:
18
idd/LGIddHelper/CWidget.h
Normal file
18
idd/LGIddHelper/CWidget.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#pragma once
|
||||
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
||||
class CWidget {
|
||||
protected:
|
||||
HWND m_hwnd = NULL;
|
||||
|
||||
HWND createWindowSimple(LPCWSTR cls, LPCWSTR title, DWORD style, HWND parent);
|
||||
|
||||
public:
|
||||
virtual ~CWidget();
|
||||
void destroy();
|
||||
|
||||
HWND hwnd() { return m_hwnd; }
|
||||
operator HWND() { return m_hwnd; }
|
||||
};
|
Reference in New Issue
Block a user