It doesn't really help that much, but since we are defining it in some headers, we might as well do it everywhere so it actually has some effect in case the headers were included in a different order.
18 lines
299 B
C++
18 lines
299 B
C++
#pragma once
|
|
|
|
#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() const { return m_hwnd; }
|
|
};
|