void ui_pet_settings_dialog(HWND hwnd) { PROPSHEETPAGE psp[4]; PROPSHEETHEADER psh; int i; for (i = 0; i < 4; i++) { psp[i].dwSize = sizeof(PROPSHEETPAGE); psp[i].dwFlags = PSP_USETITLE /*| PSP_HASHELP*/ ; psp[i].hInstance = winmain_instance; #ifdef _ANONYMOUS_UNION psp[i].pszIcon = NULL; #else psp[i].u2.pszIcon = NULL; #endif psp[i].lParam = 0; psp[i].pfnCallback = NULL; } psp[0].pfnDlgProc = model_dialog_proc; psp[0].pszTitle = translate_text(IDS_MEMORY); psp[1].pfnDlgProc = io_dialog_proc; psp[1].pszTitle = translate_text(IDS_INPUT_OUTPUT); psp[2].pfnDlgProc = superpet_io_dialog_proc; psp[2].pszTitle = TEXT("Super PET"); psp[3].pfnDlgProc = pet8296_dialog_proc; psp[3].pszTitle = TEXT("8296 PET"); #ifdef _ANONYMOUS_UNION psp[0].pszTemplate = MAKEINTRESOURCE(IDD_PET_SETTINGS_MEMORY_DIALOG); psp[1].pszTemplate = MAKEINTRESOURCE(IDD_PET_SETTINGS_IO_DIALOG); psp[2].pszTemplate = MAKEINTRESOURCE(IDD_PET_SETTINGS_SUPER_DIALOG); psp[3].pszTemplate = MAKEINTRESOURCE(IDD_PET_SETTINGS_8296_DIALOG); #else psp[0].DUMMYUNIONNAME.pszTemplate = MAKEINTRESOURCE(IDD_PET_SETTINGS_MEMORY_DIALOG); psp[1].DUMMYUNIONNAME.pszTemplate = MAKEINTRESOURCE(IDD_PET_SETTINGS_IO_DIALOG); psp[2].DUMMYUNIONNAME.pszTemplate = MAKEINTRESOURCE(IDD_PET_SETTINGS_SUPER_DIALOG); psp[3].DUMMYUNIONNAME.pszTemplate = MAKEINTRESOURCE(IDD_PET_SETTINGS_8296_DIALOG); #endif psh.dwSize = sizeof(PROPSHEETHEADER); psh.dwFlags = PSH_PROPSHEETPAGE | PSH_NOAPPLYNOW; psh.hwndParent = hwnd; psh.hInstance = winmain_instance; psh.pszCaption = translate_text(IDS_PET_SETTINGS); psh.nPages = 4; #ifdef _ANONYMOUS_UNION psh.pszIcon = NULL; psh.nStartPage = 0; psh.ppsp = psp; #else psh.DUMMYUNIONNAME.pszIcon = NULL; psh.u2.nStartPage = 0; psh.u3.ppsp = psp; #endif psh.pfnCallback = NULL; system_psh_settings(&psh); PropertySheet(&psh); }
void ui_cbm2_settings_dialog(HWND hwnd) { PROPSHEETPAGE psp[4]; PROPSHEETHEADER psh; int i; for (i = 0; i < 2; i++) { psp[i].dwSize = sizeof(PROPSHEETPAGE); psp[i].dwFlags = PSP_USETITLE /*| PSP_HASHELP*/ ; psp[i].hInstance = winmain_instance; #ifdef _ANONYMOUS_UNION psp[i].pszIcon = NULL; #else psp[i].u2.pszIcon = NULL; #endif psp[i].lParam = 0; psp[i].pfnCallback = NULL; } psp[0].pfnDlgProc = dialog_proc; psp[0].pszTitle = translate_text(IDS_MODEL); psp[1].pfnDlgProc = memory_dialog_proc; psp[1].pszTitle = translate_text(IDS_MEMORY); #ifdef _ANONYMOUS_UNION psp[0].pszTemplate = MAKEINTRESOURCE(IDD_CBMII_SETTINGS_MODEL_DIALOG); psp[1].pszTemplate = MAKEINTRESOURCE(IDD_CBMII_SETTINGS_IO_DIALOG); #else psp[0].DUMMYUNIONNAME.pszTemplate = MAKEINTRESOURCE(IDD_CBMII_SETTINGS_MODEL_DIALOG); psp[1].DUMMYUNIONNAME.pszTemplate = MAKEINTRESOURCE(IDD_CBMII_SETTINGS_IO_DIALOG); #endif psh.dwSize = sizeof(PROPSHEETHEADER); psh.dwFlags = PSH_PROPSHEETPAGE | PSH_NOAPPLYNOW; psh.hwndParent = hwnd; psh.hInstance = winmain_instance; psh.pszCaption = translate_text(IDS_CBM2_SETTINGS); psh.nPages = 2; #ifdef _ANONYMOUS_UNION psh.pszIcon = NULL; psh.nStartPage = 0; psh.ppsp = psp; #else psh.DUMMYUNIONNAME.pszIcon = NULL; psh.u2.nStartPage = 0; psh.u3.ppsp = psp; #endif psh.pfnCallback = NULL; system_psh_settings(&psh); PropertySheet(&psh); }
void uidrivec64_settings_dialog(HWND hwnd) { PROPSHEETPAGE psp[4]; PROPSHEETHEADER psh; int i; for (i = 0; i < 4; i++) { psp[i].dwSize = sizeof(PROPSHEETPAGE); psp[i].dwFlags = PSP_USETITLE /*| PSP_HASHELP*/ ; psp[i].hInstance = winmain_instance; #ifdef _ANONYMOUS_UNION psp[i].pszTemplate = MAKEINTRESOURCE(translate_res(IDD_DRIVE_SETTINGS_DIALOG_C64)); psp[i].pszIcon = NULL; #else psp[i].DUMMYUNIONNAME.pszTemplate = MAKEINTRESOURCE(translate_res(IDD_DRIVE_SETTINGS_DIALOG_C64)); psp[i].u2.pszIcon = NULL; #endif psp[i].lParam = 0; psp[i].pfnCallback = NULL; } psp[0].pfnDlgProc = callback_8; psp[0].pszTitle = translate_text(IDS_DRIVE_8); psp[1].pfnDlgProc = callback_9; psp[1].pszTitle = translate_text(IDS_DRIVE_9); psp[2].pfnDlgProc = callback_10; psp[2].pszTitle = translate_text(IDS_DRIVE_10); psp[3].pfnDlgProc = callback_11; psp[3].pszTitle = translate_text(IDS_DRIVE_11); psh.dwSize = sizeof(PROPSHEETHEADER); psh.dwFlags = PSH_PROPSHEETPAGE | PSH_NOAPPLYNOW; psh.hwndParent = hwnd; psh.hInstance = winmain_instance; psh.pszCaption = translate_text(IDS_DRIVE_SETTINGS); psh.nPages = 4; #ifdef _ANONYMOUS_UNION psh.pszIcon = NULL; psh.nStartPage = 0; psh.ppsp = psp; #else psh.DUMMYUNIONNAME.pszIcon = NULL; psh.u2.nStartPage = 0; psh.u3.ppsp = psp; #endif psh.pfnCallback = NULL; system_psh_settings(&psh); PropertySheet(&psh); }