| version 1.3, 2003/10/21 11:51:16 | version 1.5, 2003/10/24 14:16:54 | 
| Line 153  static LRESULT CALLBACK dlgitem_proc(HWN | Line 153  static LRESULT CALLBACK dlgitem_proc(HWN | 
 | } str; | } str; | 
 | COMCFG  *cfg; | COMCFG  *cfg; | 
 | UINT    update; | UINT    update; | 
 |  | COMMNG  cm; | 
 |  |  | 
 | switch (msg) { | switch (msg) { | 
 | case WM_INITDIALOG: | case WM_INITDIALOG: | 
| Line 219  static LRESULT CALLBACK dlgitem_proc(HWN | Line 220  static LRESULT CALLBACK dlgitem_proc(HWN | 
 | break; | break; | 
 |  |  | 
 | case WM_NOTIFY: | case WM_NOTIFY: | 
| if ((((NMHDR *)lp)->code) == PSN_APPLY) { | if ((((NMHDR *)lp)->code) == (UINT)PSN_APPLY) { | 
 | cfg = m->cfg; | cfg = m->cfg; | 
 | update = 0; | update = 0; | 
 | r = SendDlgItemMessage(hWnd, m->idc[ID_PORT], | r = SendDlgItemMessage(hWnd, m->idc[ID_PORT], | 
| Line 288  static LRESULT CALLBACK dlgitem_proc(HWN | Line 289  static LRESULT CALLBACK dlgitem_proc(HWN | 
 | } | } | 
 |  |  | 
 | cfg->def_en = GetDlgItemCheck(hWnd, m->idc[ID_DEFE]); | cfg->def_en = GetDlgItemCheck(hWnd, m->idc[ID_DEFE]); | 
 |  | cm = *m->cm; | 
 |  | if (cm) { | 
 |  | cm->msg(cm, COMMSG_MIMPIDEFEN, cfg->def_en); | 
 |  | } | 
 | GetDlgItemText(hWnd, m->idc[ID_DEFF], | GetDlgItemText(hWnd, m->idc[ID_DEFF], | 
 | str.mdef, sizeof(str.mdef)); | str.mdef, sizeof(str.mdef)); | 
 | if (milstr_cmp(cfg->def, str.mdef)) { | if (milstr_cmp(cfg->def, str.mdef)) { | 
 | milstr_ncpy(cfg->def, str.mdef, sizeof(cfg->def)); | milstr_ncpy(cfg->def, str.mdef, sizeof(cfg->def)); | 
 | update |= SYS_UPDATEOSCFG; | update |= SYS_UPDATEOSCFG; | 
| //                                      commsmidi_toneload(m->comm, str.mdef); | if (cm) { | 
|  | cm->msg(cm, COMMSG_MIMPIDEFFILE, (long)str.mdef); | 
|  | } | 
 | } | } | 
 | sysmng_update(update); | sysmng_update(update); | 
 | return(TRUE); | return(TRUE); | 
| Line 682  static LRESULT CALLBACK pc9861mainProc(H | Line 689  static LRESULT CALLBACK pc9861mainProc(H | 
 | 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; | 
 | r = GetDlgItemCheck(hWnd, IDC_PC9861E); | r = GetDlgItemCheck(hWnd, IDC_PC9861E); | 
 | if (np2cfg.pc9861enable != r) { | if (np2cfg.pc9861enable != r) { |