1
0

HOTKEY.H 678 B

1234567891011121314151617181920212223242526272829303132
  1. // HotKey.h: interface for the CHotKey class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_HOTKEY_H__82523B98_0E49_4B2A_8206_A4262D29C3C8__INCLUDED_)
  5. #define AFX_HOTKEY_H__82523B98_0E49_4B2A_8206_A4262D29C3C8__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include "gen_hotkeys.h"
  10. struct HOTKEY_DATA
  11. {
  12. DWORD dwHotKey;
  13. int iCommand;
  14. wchar_t *szCommand;
  15. };
  16. struct HOTKEY
  17. {
  18. HOTKEY_DATA hkd;
  19. ATOM atom;
  20. BOOL failed;
  21. };
  22. int RegisterHotkey(HOTKEY *hk);
  23. void UnregisterHotkey(HOTKEY *hk);
  24. UINT GetModKeys(DWORD dwHotKey);
  25. #endif // !defined(AFX_HOTKEY_H__82523B98_0E49_4B2A_8206_A4262D29C3C8__INCLUDED_)