| version 1.1, 2003/10/16 17:59:03 | version 1.6, 2003/10/30 12:45:38 | 
| Line 2 | Line 2 | 
 | #include        <windowsx.h> | #include        <windowsx.h> | 
 | #include        <commctrl.h> | #include        <commctrl.h> | 
 | #include        <prsht.h> | #include        <prsht.h> | 
 | #include        "resource.h" |  | 
 | #include        "strres.h" | #include        "strres.h" | 
 |  | #include        "resource.h" | 
 | #include        "np2.h" | #include        "np2.h" | 
 |  | #include        "dosio.h" | 
 | #include        "joymng.h" | #include        "joymng.h" | 
 | #include        "sysmng.h" | #include        "sysmng.h" | 
 | #include        "menu.h" | #include        "menu.h" | 
 |  | #include        "dialog.h" | 
 |  | #include        "dialogs.h" | 
 |  | #include        "bit2res.h" | 
 | #include        "pccore.h" | #include        "pccore.h" | 
 | #include        "iocore.h" | #include        "iocore.h" | 
 | #include        "sound.h" | #include        "sound.h" | 
 | #include        "fmboard.h" | #include        "fmboard.h" | 
 | #include        "bit2res.h" |  | 
 | #include        "dialog.h" |  | 
 | #include        "dialogs.h" |  | 
 | #include        "s98.h" | #include        "s98.h" | 
 |  |  | 
 |  |  | 
| Line 137  static LRESULT CALLBACK SndmixDlgProc(HW | Line 138  static LRESULT CALLBACK SndmixDlgProc(HW | 
 | break; | break; | 
 |  |  | 
 | case WM_NOTIFY: | case WM_NOTIFY: | 
| if ((((NMHDR *)lp)->code) == PSN_APPLY) { | if ((((NMHDR *)lp)->code) == (UINT)PSN_APPLY) { | 
 | for (i=0; i<5; i++) { | for (i=0; i<5; i++) { | 
 | if (sliderrestore(hWnd, &sndmixitem[i])) { | if (sliderrestore(hWnd, &sndmixitem[i])) { | 
 | sysmng_update(SYS_UPDATECFG); | sysmng_update(SYS_UPDATECFG); | 
| Line 193  static LRESULT CALLBACK Snd14optDlgProc( | Line 194  static LRESULT CALLBACK Snd14optDlgProc( | 
 | break; | break; | 
 |  |  | 
 | case WM_NOTIFY: | case WM_NOTIFY: | 
| if ((((NMHDR *)lp)->code) == PSN_APPLY) { | if ((((NMHDR *)lp)->code) == (UINT)PSN_APPLY) { | 
 | for (i=0; i<6; i++) { | for (i=0; i<6; i++) { | 
 | if (sliderrestore(hWnd, &snd14item[i])) { | if (sliderrestore(hWnd, &snd14item[i])) { | 
 | sysmng_update(SYS_UPDATECFG); | sysmng_update(SYS_UPDATECFG); | 
| Line 456  static LRESULT CALLBACK Snd26optDlgProc( | Line 457  static LRESULT CALLBACK Snd26optDlgProc( | 
 | break; | break; | 
 |  |  | 
 | case WM_NOTIFY: | case WM_NOTIFY: | 
| if ((((NMHDR *)lp)->code) == PSN_APPLY) { | if ((((NMHDR *)lp)->code) == (UINT)PSN_APPLY) { | 
 | if (np2cfg.snd26opt != snd26) { | if (np2cfg.snd26opt != snd26) { | 
 | np2cfg.snd26opt = snd26; | np2cfg.snd26opt = snd26; | 
 | sysmng_update(SYS_UPDATECFG); | sysmng_update(SYS_UPDATECFG); | 
| Line 689  static LRESULT CALLBACK Snd86optDlgProc( | Line 690  static LRESULT CALLBACK Snd86optDlgProc( | 
 | break; | break; | 
 |  |  | 
 | case WM_NOTIFY: | case WM_NOTIFY: | 
| if ((((NMHDR *)lp)->code) == PSN_APPLY) { | if ((((NMHDR *)lp)->code) == (UINT)PSN_APPLY) { | 
 | if (np2cfg.snd86opt != snd86) { | if (np2cfg.snd86opt != snd86) { | 
 | np2cfg.snd86opt = snd86; | np2cfg.snd86opt = snd86; | 
 | sysmng_update(SYS_UPDATECFG); | sysmng_update(SYS_UPDATECFG); | 
| Line 919  static LRESULT CALLBACK SPBoptDlgProc(HW | Line 920  static LRESULT CALLBACK SPBoptDlgProc(HW | 
 | break; | break; | 
 |  |  | 
 | case WM_NOTIFY: | case WM_NOTIFY: | 
| if ((((NMHDR *)lp)->code) == PSN_APPLY) { | if ((((NMHDR *)lp)->code) == (UINT)PSN_APPLY) { | 
 | update = 0; | update = 0; | 
 | if (np2cfg.spbopt != spb) { | if (np2cfg.spbopt != spb) { | 
 | np2cfg.spbopt = spb; | np2cfg.spbopt = spb; | 
| Line 935  static LRESULT CALLBACK SPBoptDlgProc(HW | Line 936  static LRESULT CALLBACK SPBoptDlgProc(HW | 
 | np2cfg.spb_vrl = b; | np2cfg.spb_vrl = b; | 
 | update |= SYS_UPDATECFG; | update |= SYS_UPDATECFG; | 
 | } | } | 
| //                              FM_setVR(np2cfg.spb_vrc, np2cfg.spb_vrl); | opngen_setVR(np2cfg.spb_vrc, np2cfg.spb_vrl); | 
 | b = (BYTE)(Button_GetCheck(GetDlgItem(hWnd, IDC_SPBREVERSE))?                                                                                                                                                   1:0); | b = (BYTE)(Button_GetCheck(GetDlgItem(hWnd, IDC_SPBREVERSE))?                                                                                                                                                   1:0); | 
 | if (np2cfg.spb_x != b) { | if (np2cfg.spb_x != b) { | 
 | np2cfg.spb_x = b; | np2cfg.spb_x = b; | 
| Line 1012  static LRESULT CALLBACK PAD1optDlgProc(H | Line 1013  static LRESULT CALLBACK PAD1optDlgProc(H | 
 | return(TRUE); | return(TRUE); | 
 |  |  | 
 | case WM_NOTIFY: | case WM_NOTIFY: | 
| if ((((NMHDR *)lp)->code) == PSN_APPLY) { | if ((((NMHDR *)lp)->code) == (UINT)PSN_APPLY) { | 
 | renewal = 0; | renewal = 0; | 
 | for (i=0; i<13; i++) { | for (i=0; i<13; i++) { | 
 | renewal |= checkbtnres_store(hWnd, pad1opt + i); | renewal |= checkbtnres_store(hWnd, pad1opt + i); | 
| Line 1071  void dialog_sndopt(HWND hWnd) { | Line 1072  void dialog_sndopt(HWND hWnd) { | 
 |  |  | 
 | ZeroMemory(&psh, sizeof(psh)); | ZeroMemory(&psh, sizeof(psh)); | 
 | psh.dwSize = sizeof(PROPSHEETHEADER); | psh.dwSize = sizeof(PROPSHEETHEADER); | 
| psh.dwFlags = PSH_NOAPPLYNOW; | psh.dwFlags = PSH_NOAPPLYNOW | PSH_USEHICON; | 
 | psh.hwndParent = hWnd; | psh.hwndParent = hWnd; | 
 | psh.hInstance = hinst; | psh.hInstance = hinst; | 
| psh.nPages = 6;                                                                                                 // ver0.29 | psh.hIcon = LoadIcon(hinst, MAKEINTRESOURCE(IDI_ICON2)); | 
|  | psh.nPages = 6; | 
 | psh.phpage = hpsp; | psh.phpage = hpsp; | 
 | psh.pszCaption = str_sndopt; | psh.pszCaption = str_sndopt; | 
 | PropertySheet(&psh); | PropertySheet(&psh); | 
| Line 1093  static const FILESEL s98ui = {s98ui_titl | Line 1095  static const FILESEL s98ui = {s98ui_titl | 
 | void dialog_s98(HWND hWnd) { | void dialog_s98(HWND hWnd) { | 
 |  |  | 
 | BOOL    check; | BOOL    check; | 
| const char      *p; | char    path[MAX_PATH]; | 
 |  |  | 
 | S98_close(); | S98_close(); | 
 | check = FALSE; | check = FALSE; | 
| p = dlgs_selectwritenum(hWnd, &s98ui, s98ui_file, | file_cpyname(path, bmpfilefolder, sizeof(path)); | 
| bmpfilefolder, sizeof(bmpfilefolder)); | file_cutname(path); | 
| if ((p != NULL) && (S98_open(p) == SUCCESS)) { | file_catname(path, s98ui_file, sizeof(path)); | 
|  | if ((dlgs_selectwritenum(hWnd, &s98ui, path, sizeof(path))) && | 
|  | (S98_open(path) == SUCCESS)) { | 
|  | file_cpyname(bmpfilefolder, path, sizeof(bmpfilefolder)); | 
|  | sysmng_update(SYS_UPDATEOSCFG); | 
 | check = TRUE; | check = TRUE; | 
 | } | } | 
 | xmenu_sets98logging(check); | xmenu_sets98logging(check); |