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

Diff for /OpenXM_contrib2/windows/engine2000/ChildView.cpp between version 1.4 and 1.5

version 1.4, 2014/03/25 20:10:51 version 1.5, 2014/05/13 20:07:23
Line 81  void CChildView::OnPaint() 
Line 81  void CChildView::OnPaint() 
         // TODO: メッセージ ハンドラのコードをここに追加してください。          // TODO: メッセージ ハンドラのコードをここに追加してください。
   
         // 描画のために CWnd::OnPaint を呼び出してはいけません。          // 描画のために CWnd::OnPaint を呼び出してはいけません。
         if ( can->mode == MODE_INTERACTIVE ) {          if ( can->mode == modeNO(INTERACTIVE) ) {
                 ::BitBlt(dc.m_hDC,0,0,can->width,can->height,can->pix,0,0,SRCCOPY);                  ::BitBlt(dc.m_hDC,0,0,can->width,can->height,can->pix,0,0,SRCCOPY);
         } else {          } else {
                 if ( !can->wide ) {                  if ( !can->wide ) {
Line 123  void CChildView::OnPrint(CDC &dc) 
Line 123  void CChildView::OnPrint(CDC &dc) 
         dc.StartDoc(&docinfo);          dc.StartDoc(&docinfo);
         dc.StartPage();          dc.StartPage();
   
         if ( can->mode == MODE_INTERACTIVE ) {          if ( can->mode == modeNO(INTERACTIVE) ) {
   
                 // We want to associate a rectangle of a fixed size to                  // We want to associate a rectangle of a fixed size to
                 // one bitmap pixel                  // one bitmap pixel
Line 164  void CChildView::OnPrint(CDC &dc) 
Line 164  void CChildView::OnPrint(CDC &dc) 
                 dc.SetViewportOrg(width/18,height/18);                  dc.SetViewportOrg(width/18,height/18);
                 dc.SetViewportExt(width,height);                  dc.SetViewportExt(width,height);
   
                 if ( can->mode == MODE_PLOT )                  if ( can->mode == modeNO(PLOT) )
                         dc.Polyline(can->pa[0].pos,can->pa[0].length);                          dc.Polyline(can->pa[0].pos,can->pa[0].length);
                 else                  else
                 ::StretchBlt(dc.m_hDC,0,0,can->width,can->height,can->pix,                  ::StretchBlt(dc.m_hDC,0,0,can->width,can->height,can->pix,
Line 184  void CChildView::PrintAxis(CDC &dc)
Line 184  void CChildView::PrintAxis(CDC &dc)
         char buf[BUFSIZ];          char buf[BUFSIZ];
   
         /* XXX : should be cleaned up */          /* XXX : should be cleaned up */
         if ( can->noaxis || (can->mode == MODE_PLOT && !can->pa) )          if ( can->noaxis || (can->mode == modeNO(PLOT) && !can->pa) )
                 return;                  return;
         if ( can->mode == MODE_INTERACTIVE )          if ( can->mode == modeNO(INTERACTIVE) )
                 return;                  return;
   
         xadj = yadj = 0;          xadj = yadj = 0;

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

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