We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0687ede commit a43b26fCopy full SHA for a43b26f
Code/maxGUI/FormConcept.hpp
@@ -66,7 +66,7 @@ namespace maxGUI
66
template< typename T, typename... Params >
67
T* AppendMenu(Params&&... params) noexcept {
68
#if defined(MAX_PLATFORM_WINDOWS)
69
- bool is_first_menu = menus_size() == 0;
+ bool is_first_menu = menus_.size() == 0;
70
if (is_first_menu) {
71
menu_bar_handle_ = CreateMenu();
72
@@ -89,9 +89,12 @@ namespace maxGUI
89
// TODO: This is only required if the window has already been drawn. IE the menus were added after WM_CREATE
90
DrawMenuBar(window_handle_);
91
}
92
-#endif
93
94
return raw_menu_ptr;
+#else
95
+ // TODO: Implement on other platforms
96
+ return nullptr;
97
+#endif
98
99
100
template<typename T, typename... Params>
0 commit comments