mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-10 17:38:10 +00:00
[idd] helper: use CWindow helper to avoid global state
This commit is contained in:
20
idd/LGIddHelper/CWindow.h
Normal file
20
idd/LGIddHelper/CWindow.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#include <shellapi.h>
|
||||
|
||||
#define WM_NOTIFY_ICON (WM_USER)
|
||||
|
||||
class CWindow {
|
||||
static ATOM s_atom;
|
||||
static LRESULT CALLBACK wndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
||||
|
||||
HWND m_hwnd = NULL;
|
||||
LRESULT handleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam);
|
||||
|
||||
public:
|
||||
static bool registerClass();
|
||||
CWindow();
|
||||
~CWindow();
|
||||
};
|
Reference in New Issue
Block a user