Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
677 B

  1. #ifndef __VKTBL_H__
  2. #define __VKTBL_H__
  3. #define ACC_SHIFT 0x04
  4. #define ACC_CTRL 0x08
  5. #define ACC_ALT 0x10
  6. #define ACC_VK 0x01
  7. #define ISACCFLG(x,y) ((x & y)==y)
  8. class CAccel
  9. {
  10. public:
  11. CAccel(); // Default
  12. CAccel(LPCSTR strText);
  13. CAccel(DWORD dwFlags, DWORD dwEvent);
  14. DWORD GetEvent()
  15. { return m_dwEvent; }
  16. DWORD GetFlags()
  17. { return m_dwFlags; }
  18. CString GetText()
  19. { return m_strText; }
  20. private:
  21. CString VKToString(DWORD dwVKCode);
  22. DWORD StringToVK(CString str);
  23. CString m_strText;
  24. DWORD m_dwFlags;
  25. DWORD m_dwEvent;
  26. };
  27. #endif // __VKTBL_H__