xref: /MusicPlayer2/MusicPlayer2/AcceleratorRes.h (revision 304abac4c1dce718d1e857515afd2981b3046770)
1 #pragma once
2 class CAcceleratorRes
3 {
4 public:
5     CAcceleratorRes();
6     ~CAcceleratorRes();
7 
8     struct Key
9     {
10         unsigned short key{};
11         bool ctrl{};
12         bool shift{};
13         bool alt{};
14 
15         std::wstring ToString() const;
16     };
17 
18     void Init();
19     std::wstring GetShortcutDescriptionById(UINT id) const;
20 
21 private:
22     std::map<UINT, Key> m_accelerator_res;
23     std::string m_res_data;
24 };
25