Diff for /np2/win9x/dialog/dialogs.cpp between versions 1.14 and 1.15

version 1.14, 2007/12/16 14:58:25 version 1.15, 2007/12/17 14:52:56
Line 12 Line 12
 #endif  #endif
   
   
 const TCHAR str_nc[] = _T("N/C");  
   
   
 // ---- enable  // ---- enable
   
Line 373  int dlgs_getcbcur(HWND hWnd, UINT uID, i Line 371  int dlgs_getcbcur(HWND hWnd, UINT uID, i
   
 // ---- MIDIデバイスのリスト  // ---- MIDIデバイスのリスト
   
   static void insertnc(HWND hWnd, int nPos)
   {
           TCHAR   szNC[128];
   
           loadstringresource(g_hInstance, LOWORD(IDS_NONCONNECT),
                                                                                                           szNC, NELEMENTS(szNC));
           SendMessage(hWnd, CB_INSERTSTRING, (WPARAM)nPos, (LPARAM)szNC);
   }
   
 void dlgs_setlistmidiout(HWND hWnd, UINT16 res, const OEMCHAR *defname) {  void dlgs_setlistmidiout(HWND hWnd, UINT16 res, const OEMCHAR *defname) {
   
         HWND            wnd;          HWND            wnd;
Line 385  void dlgs_setlistmidiout(HWND hWnd, UINT Line 392  void dlgs_setlistmidiout(HWND hWnd, UINT
         wnd = GetDlgItem(hWnd, res);          wnd = GetDlgItem(hWnd, res);
         defcur = 0;          defcur = 0;
         devs = midiOutGetNumDevs();          devs = midiOutGetNumDevs();
         SendMessage(wnd, CB_INSERTSTRING, (WPARAM)0, (LPARAM)str_nc);          insertnc(wnd, 0);
         SendMessage(wnd, CB_INSERTSTRING, (WPARAM)1, (LPARAM)cmmidi_midimapper);          SendMessage(wnd, CB_INSERTSTRING, (WPARAM)1, (LPARAM)cmmidi_midimapper);
         if (!milstr_cmp(defname, cmmidi_midimapper)) {          if (!milstr_cmp(defname, cmmidi_midimapper)) {
                 defcur = 1;                  defcur = 1;
Line 432  void dlgs_setlistmidiin(HWND hWnd, UINT1 Line 439  void dlgs_setlistmidiin(HWND hWnd, UINT1
         wnd = GetDlgItem(hWnd, res);          wnd = GetDlgItem(hWnd, res);
         defcur = 0;          defcur = 0;
         num = midiInGetNumDevs();          num = midiInGetNumDevs();
         SendMessage(wnd, CB_INSERTSTRING, (WPARAM)0, (LPARAM)str_nc);          insertnc(wnd, 0);
         for (i=0; i<num; i++) {          for (i=0; i<num; i++) {
                 if (midiInGetDevCaps(i, &mic, sizeof(mic)) == MMSYSERR_NOERROR) {                  if (midiInGetDevCaps(i, &mic, sizeof(mic)) == MMSYSERR_NOERROR) {
                         SendMessage(wnd, CB_INSERTSTRING,                          SendMessage(wnd, CB_INSERTSTRING,

Removed from v.1.14  
changed lines
  Added in v.1.15


RetroPC.NET-CVS <cvs@retropc.net>