1 #pragma once 2 class CHotKey 3 { 4 public: 5 bool ctrl{}; 6 bool shift{}; 7 bool alt{}; 8 short key{}; 9 10 public: 11 CHotKey(); 12 ~CHotKey(); 13 14 WORD Modifiers() const; 15 16 wstring ToString() const; 17 void FromString(const wstring& str); 18 wstring GetHotkeyName() const; 19 void Clear(); 20 }; 21 22