Files
LookingGlass/idd/LGIddHelper/CWindow.h
Geoffrey McRae e9b7bdfea1 Revert "[all] refresh copyright"
Corrupted IDD sources due to lack of UTF-8 with BOM support in the
script.
2026-05-31 15:10:44 +10:00

29 lines
598 B
C++

#pragma once
#include <windows.h>
#include <shellapi.h>
class CWindow {
static LRESULT CALLBACK wndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
protected:
virtual LRESULT onCreate();
virtual LRESULT onClose();
virtual LRESULT onDestroy();
virtual LRESULT onFinal();
static HINSTANCE hInstance;
static void populateWindowClass(WNDCLASSEX &wx);
virtual LRESULT handleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam);
HWND m_hwnd = NULL;
public:
virtual ~CWindow();
void destroy();
HWND hwnd() { return m_hwnd; }
operator HWND() { return m_hwnd; }
};