mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-10 09:28:08 +00:00

Some checks failed
build / client (Debug, map[cc:clang cxx:clang++], libdecor) (push) Has been cancelled
build / client (Debug, map[cc:clang cxx:clang++], xdg-shell) (push) Has been cancelled
build / client (Debug, map[cc:gcc cxx:g++], libdecor) (push) Has been cancelled
build / client (Debug, map[cc:gcc cxx:g++], xdg-shell) (push) Has been cancelled
build / client (Release, map[cc:clang cxx:clang++], libdecor) (push) Has been cancelled
build / client (Release, map[cc:clang cxx:clang++], xdg-shell) (push) Has been cancelled
build / client (Release, map[cc:gcc cxx:g++], libdecor) (push) Has been cancelled
build / client (Release, map[cc:gcc cxx:g++], xdg-shell) (push) Has been cancelled
build / module (push) Has been cancelled
build / host-linux (push) Has been cancelled
build / host-windows-cross (push) Has been cancelled
build / host-windows-native (push) Has been cancelled
build / idd (push) Has been cancelled
build / obs (clang) (push) Has been cancelled
build / obs (gcc) (push) Has been cancelled
build / docs (push) Has been cancelled
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; }
|
|
};
|