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

Function mswin_player_selection_window

outdated/sys/wince/mhdlg.c:289–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287static int plselFinalSelection(HWND hWnd, int *selection);
288
289int
290mswin_player_selection_window(int *selection)
291{
292 int ret;
293 struct plsel_data data;
294
295 /* init dialog data */
296 ZeroMemory(&data, sizeof(data));
297 data.selection = selection;
298
299 /* create modal dialog */
300 ret = DialogBoxParam(
301 GetNHApp()->hApp, MAKEINTRESOURCE(IDD_PLAYER_SELECTOR),
302 GetNHApp()->hMainWnd, PlayerSelectorDlgProc, (LPARAM) &data);
303 if (ret == -1)
304 panic("Cannot create getlin window");
305
306 return ret;
307}
308
309BOOL CALLBACK
310PlayerSelectorDlgProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)

Callers 1

mswin_player_selectionFunction · 0.70

Calls 2

GetNHAppFunction · 0.70
panicFunction · 0.50

Tested by

no test coverage detected