[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.2 and 1.4

version 1.2, 2010/01/21 03:00:21 version 1.4, 2012/03/10 01:09:15
Line 215  HCURSOR CWinfepDlg::OnQueryDragIcon()
Line 215  HCURSOR CWinfepDlg::OnQueryDragIcon()
 void CWinfepDlg::OnSend()  void CWinfepDlg::OnSend()
 {  {
         // TODO: この位置にコントロール通知ハンドラ用のコードを追加してください          // TODO: この位置にコントロール通知ハンドラ用のコードを追加してください
         if ( !infile ) return;      int i;
       if ( !infile ) return;
     if ( currentline >= 0 && currentline < nlines ) {      if ( currentline >= 0 && currentline < nlines ) {
           CString str;            CString str;
           m_currentline.GetWindowText(str);            m_currentline.GetWindowText(str);
       LPCSTR line = (LPCSTR)str;        LPCSTR line = (LPCSTR)str;
       for ( int i = 0; line[i]; i++ ) {        for ( i = 0; line[i] && isspace(line[i]); i++ );
         if ( line[i] &&
           !strncmp(line+i,"end$",4) || !strncmp(line+i,"end;",4) ) return;
         for ( i = 0; line[i]; i++ ) {
         if ( line[i] == '\t' )          if ( line[i] == '\t' )
                 ::SendMessage(asirhwnd,WM_CHAR,' ',8);                  ::SendMessage(asirhwnd,WM_CHAR,' ',8);
         else          else
Line 284  void CWinfepDlg::OnAsir() 
Line 288  void CWinfepDlg::OnAsir() 
         CFileDialog fileDialog(TRUE);          CFileDialog fileDialog(TRUE);
         if ( fileDialog.DoModal() == IDOK ) {          if ( fileDialog.DoModal() == IDOK ) {
                 CString pathName = fileDialog.GetPathName();                  CString pathName = fileDialog.GetPathName();
                 _spawnl(_P_NOWAIT,pathName,pathName,NULL);                  _spawnl(_P_NOWAIT,pathName,"asirgui",NULL);
                 Sleep(5000);                  Sleep(5000);
                 get_asirhwnd();                  get_asirhwnd();
         }          }

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

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