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

Function _get_main_menu

outdated/sys/wince/mhmain.c:1113–1131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1111}
1112
1113HMENU
1114_get_main_menu(UINT menu_id)
1115{
1116 HMENU hmenuMap;
1117#if defined(WIN_CE_POCKETPC) || defined(WIN_CE_SMARTPHONE)
1118 TBBUTTONINFO tbbi;
1119#endif
1120
1121#if defined(WIN_CE_POCKETPC) || defined(WIN_CE_SMARTPHONE)
1122 tbbi.cbSize = sizeof(tbbi);
1123 tbbi.dwMask = TBIF_LPARAM;
1124 SendMessage(GetNHApp()->hMenuBar, TB_GETBUTTONINFO, menu_id,
1125 (LPARAM) &tbbi);
1126 hmenuMap = (HMENU) tbbi.lParam;
1127#else
1128 hmenuMap = CommandBar_GetMenu(GetNHApp()->hMenuBar, 0);
1129#endif
1130 return hmenuMap;
1131}
1132
1133/* SmartPhone: display dialog to type arbitrary command text */
1134void

Callers 3

MainWndProcFunction · 0.85
onWMCommandFunction · 0.85
mswin_select_map_modeFunction · 0.85

Calls 1

GetNHAppFunction · 0.70

Tested by

no test coverage detected