-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClicker.h
More file actions
44 lines (37 loc) · 862 Bytes
/
Clicker.h
File metadata and controls
44 lines (37 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#pragma once
#include "framework.h"
#include <memory>
class Clicker
{
public:
enum MenuId {
EXIT = 0x1234,
ENABLE,
DISABLE,
ABOUT
};
static Clicker* Instance() {
if (m_instance == nullptr) {
m_instance = new Clicker;
}
return m_instance;
}
void Init(HWND hwnd);
void Show();
private:
bool m_initialized = false;
bool m_enabled = false;
HWND m_hwnd = NULL;
HMENU m_hMenu = NULL;
HHOOK m_hhook = NULL;
static Clicker* m_instance;
LPWSTR m_clickWave;
Clicker() {}
~Clicker() {}
void EnableClickFeedback();
void DisableClickFeedback();
static LRESULT CALLBACK LowLevelMouseProc(_In_ int nCode, _In_ WPARAM wParam, _In_ LPARAM lParam);
void InitContextMenu();
void InitClickSound();
void InitMouseHook();
};