ASPiK SDK
win32optionmenu.h
1 // This file is part of VSTGUI. It is subject to the license terms
2 // in the LICENSE file found in the top-level directory of this
3 // distribution and at http://github.com/steinbergmedia/vstgui/LICENSE
4 
5 #ifndef __win32optionmenu__
6 #define __win32optionmenu__
7 
8 #include "../iplatformoptionmenu.h"
9 
10 #if WINDOWS
11 
12 #include <windows.h>
13 #include <list>
14 
15 namespace VSTGUI {
16 
17 //-----------------------------------------------------------------------------
18 class Win32OptionMenu : public IPlatformOptionMenu
19 {
20 public:
21  Win32OptionMenu (HWND windowHandle);
22 
23  PlatformOptionMenuResult popup (COptionMenu* optionMenu) override;
24 
25 protected:
26  HMENU createMenu (COptionMenu* menu, int32_t& offsetIdx);
27 
28  HWND windowHandle;
29 
30  std::list<HBITMAP> bitmaps;
31 };
32 
33 } // namespace
34 
35 #endif // WINDOWS
36 #endif // __win32optionmenu__
Definition: customcontrols.cpp:8