| 287 | static int plselFinalSelection(HWND hWnd, int *selection); |
| 288 | |
| 289 | int |
| 290 | mswin_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 | |
| 309 | BOOL CALLBACK |
| 310 | PlayerSelectorDlgProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) |
no test coverage detected