mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
7e396787ed
Implemented the following actions: stick the window on the left/right or maximize it, with the following shortcuts: - Win key + Arrows; - drag to left/right screen border; - double-click on top/bottom. CORE-12845
34 lines
892 B
C
34 lines
892 B
C
#pragma once
|
|
|
|
typedef struct _HOT_KEY
|
|
{
|
|
PTHREADINFO pti;
|
|
PWND pWnd;
|
|
UINT fsModifiers;
|
|
UINT vk;
|
|
INT id;
|
|
struct _HOT_KEY *pNext;
|
|
} HOT_KEY, *PHOT_KEY;
|
|
|
|
/* Special Hot Keys */
|
|
#define IDHK_F12 -5
|
|
#define IDHK_SHIFTF12 -6
|
|
#define IDHK_WINKEY -7
|
|
#define IDHK_REACTOS -8
|
|
|
|
/* Window Snap Hot Keys */
|
|
#define IDHK_SNAP_LEFT -10
|
|
#define IDHK_SNAP_RIGHT -11
|
|
#define IDHK_SNAP_UP -12
|
|
#define IDHK_SNAP_DOWN -13
|
|
|
|
VOID FASTCALL UnregisterWindowHotKeys(PWND Window);
|
|
VOID FASTCALL UnregisterThreadHotKeys(PTHREADINFO pti);
|
|
BOOL NTAPI co_UserProcessHotKeys(WORD wVk, BOOL bIsDown);
|
|
UINT FASTCALL DefWndGetHotKey(PWND pWnd);
|
|
INT FASTCALL DefWndSetHotKey(PWND pWnd, WPARAM wParam);
|
|
VOID FASTCALL StartDebugHotKeys(VOID);
|
|
BOOL FASTCALL UserRegisterHotKey(PWND pWnd,int id,UINT fsModifiers,UINT vk);
|
|
BOOL FASTCALL UserUnregisterHotKey(PWND pWnd, int id);
|
|
|
|
/* EOF */
|