windows-nt/Source/XPSP1/NT/shell/shell32/pifhotp.h

60 lines
1.6 KiB
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
/*
* Microsoft Confidential
* Copyright (C) Microsoft Corporation 1992,1993
* All Rights Reserved.
*
*
* PIFHOTP.H
* Private PIFMGR include file
*
* History:
* Created 22-Mar-1993 2:58pm by Jeff Parsons
*/
#ifdef OLD_HOTKEY_GOOP
#define CLASS_PIFHOTKEY TEXT("PIFHotKey")
#define WM_SETPIFHOTKEY (WM_USER+0)
#define WM_GETPIFHOTKEY (WM_USER+1)
#define HOTINFO_NEW 0x0001
#define HOTINFO_EDIT 0x0002
#define HOTINFO_COMPLETE 0x0004
typedef struct HOTINFO { /* hi */
HWND hwnd; //
HWND hDlg; //
HOTKEY hk; //
HOTKEY hkTmp; //
HOTKEY hkInit; //
int flags; // see HOTINFO_*
TCHAR cbText; //
TCHAR szText[80]; //
} HOTINFO;
typedef HOTINFO *PHOTINFO;
typedef HOTINFO *LPHOTINFO;
/* XLATOFF */
#define ALT_LPARAM ((DWORD)((DWORD)(MapVirtualKey(VK_MENU,0)) << 16))
#define CTRL_LPARAM ((DWORD)((DWORD)(MapVirtualKey(VK_CONTROL,0)) << 16))
#define SHIFT_LPARAM ((DWORD)((DWORD)(MapVirtualKey(VK_SHIFT,0)) << 16))
/* XLATON */
/*
* Internal function prototypes
*/
BOOL LoadGlobalHotKeyEditData(void);
void FreeGlobalHotKeyEditData(void);
long HotKeyWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
void SetHotKeyCaret(PHOTINFO phi);
void ChangeHotKey(PHOTINFO phi);
void SetHotKeyText(PHOTINFO phi, PHOTKEY phk);
void SetHotKeyLen(PHOTINFO phi);
void SetHotKeyState(PHOTINFO phi, WORD keyid, LONG lParam);
#endif /* OLD_HOTKEY_GOOP */