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

Diff for /OpenXM_contrib2/windows/asir32gui/asir32guiview.cpp between version 1.25 and 1.31

version 1.25, 2012/03/10 01:09:15 version 1.31, 2014/05/10 08:23:33
Line 33  void loadfile(char *);
Line 33  void loadfile(char *);
 void put_line(char *);  void put_line(char *);
 void send_intr(void);  void send_intr(void);
 void insert_to_theView(char *);  void insert_to_theView(char *);
 void get_rootdir(char *,int,char *);  BOOL get_rootdir(char *,int,char *);
   const char *get_helpdir();
 extern int bigfloat, prtime, prresult;  extern int bigfloat, prtime, prresult;
 extern char *asir_libdir;  extern char *asir_libdir;
 extern int asirgui_kind;  extern int asirgui_kind;
Line 377  void CAsir32guiView::OnChar(UINT nChar, UINT nRepCnt, 
Line 378  void CAsir32guiView::OnChar(UINT nChar, UINT nRepCnt, 
         // TODO: この位置にメッセージ ハンドラ用のコードを追加するかまたはデフォルトの処理を呼び出してください          // TODO: この位置にメッセージ ハンドラ用のコードを追加するかまたはデフォルトの処理を呼び出してください
         char *exp_result;          char *exp_result;
         char tmp[BUFSIZ];          char tmp[BUFSIZ];
           int i;
   
         if ( asirgui_kind == ASIRGUI_MESSAGE ) {          if ( asirgui_kind == ASIRGUI_MESSAGE ) {
                 Beep(); return;                  Beep(); return;
Line 440  void CAsir32guiView::OnChar(UINT nChar, UINT nRepCnt, 
Line 442  void CAsir32guiView::OnChar(UINT nChar, UINT nRepCnt, 
                 tmp[0] = 0;                  tmp[0] = 0;
                 put_line(tmp);                  put_line(tmp);
                 return;                  return;
           case CTRL('Y'):
                   Paste(); return;
           case CTRL('I'):
                   return;
         default :          default :
                 if ( nChar >= 0x20 && nChar < 0x7f )                  if ( nChar >= 0x20 && nChar < 0x7f )
                         PutChar(nChar);                          PutChar(nChar);
Line 496  void CAsir32guiView::OnFileOpen() 
Line 502  void CAsir32guiView::OnFileOpen() 
                 }                  }
         }          }
 }  }
   
 void CAsir32guiView::viewHtmlHelp(char *help)  void CAsir32guiView::viewHtmlHelp(char *help)
 {  {
         char *helpfile;          char *helpfile;
         char fmt[] = "%s\\help\\%shelp.chm";          char fmt[] = "%s\\%shelp.chm";
         char root[BUFSIZ],errmsg[BUFSIZ];          const char *dir = get_helpdir();
         get_rootdir(root,sizeof(root),errmsg);          helpfile = (char *)malloc(sizeof(fmt) + strlen(dir) + strlen(help));
         helpfile = (char *)malloc(sizeof(fmt) + strlen(root) + strlen(help));          sprintf(helpfile,fmt,dir,help);
         sprintf(helpfile,fmt,root,help);  
 #if _MSC_VER < 1300  #if _MSC_VER < 1300
     /* Visual C++ 6.0 */      /* Visual C++ 6.0 */
         ::HtmlHelp(NULL, helpfile, HH_DISPLAY_TOPIC, 0);          ::HtmlHelp(NULL, helpfile, HH_DISPLAY_TOPIC, 0);
Line 577  void CAsir32guiView::UpdateMetrics()
Line 583  void CAsir32guiView::UpdateMetrics()
 void CAsir32guiView::OnFont()  void CAsir32guiView::OnFont()
 {  {
         // TODO: この位置にコマンド ハンドラ用のコードを追加してください          // TODO: この位置にコマンド ハンドラ用のコードを追加してください
         int ret;          INT_PTR ret;
         LOGFONT lf;          LOGFONT lf;
   
         GetFont()->GetLogFont(&lf);          GetFont()->GetLogFont(&lf);
Line 726  BOOL CAsir32guiView::Create(LPCTSTR lpszClassName, LPC
Line 732  BOOL CAsir32guiView::Create(LPCTSTR lpszClassName, LPC
         // TODO: この位置に固有の処理を追加するか、または基本クラスを呼び出してください          // TODO: この位置に固有の処理を追加するか、または基本クラスを呼び出してください
   
         BOOL ret = CWnd::Create(lpszClassName, lpszWindowName, dwStyle, rect, pParentWnd, nID, pContext);          BOOL ret = CWnd::Create(lpszClassName, lpszWindowName, dwStyle, rect, pParentWnd, nID, pContext);
         FILE *fp = fopen("asirgui.hnd","w");          FILE *fp = NULL;
         char *temp;          char *temp;
           char hndname[_MAX_PATH];
   
         if ( fp ) {          if ( asirgui_kind == ASIRGUI_MAIN ) {
                 fprintf(fp,"%d",(unsigned int)theView->m_hWnd);  
                 fclose(fp);  
                 if ( temp = getenv("TEMP") ) {                  if ( temp = getenv("TEMP") ) {
                         int len;                          sprintf(hndname,"%s\\asirgui.hnd", temp);
                         char *name;                          fp = fopen(hndname,"w");
                           if ( fp ) {
                         len = strlen(temp);                                  fprintf(fp,"%d",(unsigned int)theView->m_hWnd);
                         name = (char *)malloc(len+BUFSIZ);                                  fclose(fp);
                         sprintf(name,"%s\\asirgui.hnd",temp);                          }
                         fopen(name,"w");  
                         fprintf(fp,"%d",(unsigned int)theView->m_hWnd);  
                         fclose(fp);  
                 }                  }
         }          }
         return ret;          return ret;

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.31

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