MCPcopy Create free account
hub / github.com/NetHack/NetHack / mswin_init_menu_window

Function mswin_init_menu_window

outdated/sys/wince/mhmenu.c:88–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86static char *parse_menu_str(char *dest, const char *src, size_t size);
87
88HWND
89mswin_init_menu_window(int type)
90{
91 HWND ret;
92
93 ret = CreateDialog(GetNHApp()->hApp, MAKEINTRESOURCE(IDD_MENU),
94 GetNHApp()->hMainWnd, MenuWndProc);
95 if (!ret) {
96 panic("Cannot create menu window");
97 }
98
99 SetMenuType(ret, type);
100 return ret;
101}
102
103int
104mswin_menu_window_select_menu(HWND hWnd, int how, MENU_ITEM_P **_selected)

Callers 2

mswin_putstr_exFunction · 0.70
mswin_start_menuFunction · 0.70

Calls 4

CreateDialogFunction · 0.85
GetNHAppFunction · 0.70
SetMenuTypeFunction · 0.70
panicFunction · 0.50

Tested by

no test coverage detected