1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29 #pragma once
30
31 #include "toolkit.h"
32 #include "../common/menu.h"
33
34 #include <Windows.h>
35 #undef GetCurrentTime
36 #include <winrt/Windows.Foundation.Collections.h>
37 #include <winrt/Windows.UI.Xaml.Interop.h>
38 #include <winrt/Microsoft.UI.Xaml.Controls.h>
39 #include <winrt/Microsoft.UI.Xaml.Controls.Primitives.h>
40 #include <winrt/Microsoft.UI.Xaml.XamlTypeInfo.h>
41 #include <winrt/Microsoft.UI.Xaml.Markup.h>
42
43
44
45 typedef void(*ui_menu_add_f)(winrt::Windows::Foundation::Collections::IVector<winrt::Microsoft::
UI::Xaml::Controls::MenuFlyoutItemBase> parent,
int, UiMenuItemI*, UiObject*);
46
47 winrt::Microsoft::
UI::Xaml::Controls::MenuBar ui_create_menubar(UiObject* obj);
48
49 winrt::Microsoft::
UI::Xaml::Controls::MenuFlyout ui_create_menu_flyout(UiObject* obj, UiMenu* menudef);
50
51