Skip to content

Commit a43b26f

Browse files
committed
Add Linux codepath for FormConcept::AppendMenu
1 parent 0687ede commit a43b26f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Code/maxGUI/FormConcept.hpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ namespace maxGUI
6666
template< typename T, typename... Params >
6767
T* AppendMenu(Params&&... params) noexcept {
6868
#if defined(MAX_PLATFORM_WINDOWS)
69-
bool is_first_menu = menus_size() == 0;
69+
bool is_first_menu = menus_.size() == 0;
7070
if (is_first_menu) {
7171
menu_bar_handle_ = CreateMenu();
7272

@@ -89,9 +89,12 @@ namespace maxGUI
8989
// TODO: This is only required if the window has already been drawn. IE the menus were added after WM_CREATE
9090
DrawMenuBar(window_handle_);
9191
}
92-
#endif
9392

9493
return raw_menu_ptr;
94+
#else
95+
// TODO: Implement on other platforms
96+
return nullptr;
97+
#endif
9598
}
9699

97100
template<typename T, typename... Params>

0 commit comments

Comments
 (0)