[BACK]Return to winfepDlg.cpp CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / windows / winfep

Diff for /OpenXM_contrib2/windows/winfep/winfepDlg.cpp between version 1.4 and 1.6

version 1.4, 2012/03/10 01:09:15 version 1.6, 2013/11/29 08:21:29
Line 125  BEGIN_MESSAGE_MAP(CWinfepDlg, CDialog)
Line 125  BEGIN_MESSAGE_MAP(CWinfepDlg, CDialog)
         ON_BN_CLICKED(IDC_PREV10, OnPrev10)          ON_BN_CLICKED(IDC_PREV10, OnPrev10)
         ON_BN_CLICKED(IDC_NEXT10, OnNext10)          ON_BN_CLICKED(IDC_NEXT10, OnNext10)
         ON_BN_CLICKED(IDC_QUIT, OnQuit)          ON_BN_CLICKED(IDC_QUIT, OnQuit)
           ON_BN_CLICKED(IDC_INTR, OnIntr)
         //}}AFX_MSG_MAP          //}}AFX_MSG_MAP
 END_MESSAGE_MAP()  END_MESSAGE_MAP()
   
Line 224  void CWinfepDlg::OnSend() 
Line 225  void CWinfepDlg::OnSend() 
       for ( i = 0; line[i] && isspace(line[i]); i++ );        for ( i = 0; line[i] && isspace(line[i]); i++ );
       if ( line[i] &&        if ( line[i] &&
         !strncmp(line+i,"end$",4) || !strncmp(line+i,"end;",4) ) return;          !strncmp(line+i,"end$",4) || !strncmp(line+i,"end;",4) ) return;
       for ( i = 0; line[i]; i++ ) {  
         if ( line[i] == '\t' )  //      for ( i = 0; line[i]; i++ ) {
                 ::SendMessage(asirhwnd,WM_CHAR,' ',8);  //      if ( line[i] == '\t' )
         else  //              ::SendMessage(asirhwnd,WM_CHAR,' ',8);
                 ::SendMessage(asirhwnd,WM_CHAR,line[i],1);  //      else
   //              ::SendMessage(asirhwnd,WM_CHAR,line[i],1);
   //      }
   //      ::SendMessage(asirhwnd,WM_CHAR,'\n',1);
         if ( line[i] ) {
   #if 0
           m_currentline.SetSel(0,str.GetLength());
           m_currentline.Copy();
   #else
           int len=str.GetLength()+1;
           if (!::OpenClipboard(NULL) ) return;
           HGLOBAL hMem = ::GlobalAlloc(GMEM_FIXED,len);
           LPTSTR pMem = (LPTSTR)hMem;
           ::lstrcpy(pMem,(LPCTSTR)line);
           ::EmptyClipboard();
           ::SetClipboardData(CF_TEXT,hMem);
           ::CloseClipboard();
   #endif
           ::SendMessage(asirhwnd,WM_CHAR,0x19,1);
       }        }
       ::SendMessage(asirhwnd,WM_CHAR,'\n',1);        ::SendMessage(asirhwnd,WM_CHAR,'\n',1);
       show_line(++currentline);        show_line(++currentline);
Line 369  void CWinfepDlg::OnQuit() 
Line 388  void CWinfepDlg::OnQuit() 
         // TODO: この位置にコントロール通知ハンドラ用のコードを追加してください          // TODO: この位置にコントロール通知ハンドラ用のコードを追加してください
         CDialog::OnOK();          CDialog::OnOK();
   
   }
   
   void CWinfepDlg::OnIntr()
   {
           // TODO: この位置にコントロール通知ハンドラ用のコードを追加してください
           ::SendMessage(asirhwnd,WM_CHAR,0x3,1);
 }  }

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.6

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>