mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-20 14:57:55 +08:00
17 lines
328 B
C
17 lines
328 B
C
|
#pragma once
|
||
|
|
||
|
#include <functional>
|
||
|
|
||
|
class SecondaryMouseButtonsHook
|
||
|
{
|
||
|
public:
|
||
|
SecondaryMouseButtonsHook(std::function<void()>);
|
||
|
void enable();
|
||
|
void disable();
|
||
|
|
||
|
private:
|
||
|
static HHOOK hHook;
|
||
|
static std::function<void()> callback;
|
||
|
static LRESULT CALLBACK SecondaryMouseButtonsProc(int, WPARAM, LPARAM);
|
||
|
};
|