• 大小: 3.77MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-08-13
  • 语言: C/C++
  • 标签: Shepp_Logan  

资源简介

用VC++实现Shepp_Logan模型设计

资源截图

代码片段和文件信息

// DialogCircle.cpp : implementation file
//

#include “stdafx.h“
#include “DialogCircle.h“

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CDialogCircle dialog


CDialogCircle::CDialogCircle(CWnd* pParent /*=NULLint (*pFirst) [1400])*/)
: CDialog(CDialogCircle::IDD pParent)
{

//{{AFX_DATA_INIT(CDialogCircle)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}


void CDialogCircle::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CDialogCircle)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDialogCircle CDialog)
//{{AFX_MSG_MAP(CDialogCircle)
ON_WM_PAINT()
ON_WM_CLOSE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDialogCircle message handlers

void CDialogCircle::OnPaint() 
{

CPaintDC dc(this); // device context for painting

// TODO: Add your message handler code here

// Do not call CDialog::OnPaint() for painting messages
CRect rect;
GetClientRect(rect);
int OrgDC;
    CPen *pOldPen;
    CPen pNewPen1(PS_SOLID1RGB(130130130))
         pNewPen2(PS_SOLID1RGB(240240240))
     pNewPen3(PS_SOLID1RGB(505050))
 pNewPen4(PS_SOLID1RGB(200200200))
 pNewPen5(PS_SOLID1RGB(150150150))
 pNewPen6(PS_SOLID1RGB(180180180))
     pNewPen7(PS_SOLID1RGB(255255255));
    CBrush *pOldBrush;
CBrush pNewBrush0(RGB(100100100))
   pNewBrush1(RGB(130130130))
       pNewBrush2(RGB(240240240))
   pNewBrush3(RGB(505050))
   pNewBrush4(RGB(200200200))
   pNewBrush5(RGB(150150150))
   pNewBrush6(RGB(180180180))
           pNewBrush7(RGB(255255255)); 
OrgDC=dc.SaveDC();
    CRect bound(00255255);
dc.FillRect(bound &pNewBrush0);          // 100 ;
/*
pOldPen =dc.Selectobject(&pNewPen5);
pOldBrush =dc.Selectobject(&pNewBrush5);
    dc.Ellipse(5050200200);
pOldPen =dc.Selectobject(&pNewPen7);
pOldBrush =dc.Selectobject(&pNewBrush7);
    dc.Ellipse(8080120120);
*/

//The ellipse is drawn with the current pen 
//and its interior is filled with the current brush.
pOldPen=dc.Selectobject(& pNewPen1);
pOldBrush=dc.Selectobject(& pNewBrush1);
dc.Ellipse(5010200240);                // 130 ;

pOldPen =dc.Selectobject(&pNewPen4);
pOldBrush =dc.Selectobject(&pNewBrush4);
    dc.Ellipse(6025190215);                // 200 ;  

pOldPen =dc.Selectobject(&pNewPen6);
pOldBrush =dc.Selectobject(&pNewBrush6);
    dc.Ellipse(805015095);                 // 180 ;

pOldPen =dc.Selectobject(&pNewPen2);
pOldBrush =dc.Selectobject(&pNewBrush2);
    dc.Ellipse(15095180125);               // 240 ;

pOldPen =dc.Selectobject(&pNewPen3);
pOldBrush =dc.Se

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      21561  2007-05-10 16:42  Projrecon\Debug\DialogCircle.obj

     文件          0  2007-05-10 16:42  Projrecon\Debug\DialogCircle.sbr

     文件      33082  2007-05-10 14:41  Projrecon\Debug\MainFrm.obj

     文件          0  2007-05-10 14:41  Projrecon\Debug\MainFrm.sbr

     文件      27251  2007-05-10 09:53  Projrecon\Debug\Projcircle.obj

     文件          0  2007-05-10 09:54  Projrecon\Debug\Projcircle.sbr

     文件    5161984  2007-05-10 16:42  Projrecon\Debug\Projrecon.bsc

     文件     143450  2007-05-10 16:42  Projrecon\Debug\Projrecon.exe

     文件     382684  2007-05-10 16:42  Projrecon\Debug\Projrecon.ilk

     文件      23872  2007-05-10 09:53  Projrecon\Debug\Projrecon.obj

     文件    7009676  2007-05-10 09:53  Projrecon\Debug\Projrecon.pch

     文件     525312  2007-05-10 16:42  Projrecon\Debug\Projrecon.pdb

     文件      10360  2007-05-10 11:39  Projrecon\Debug\Projrecon.res

     文件          0  2007-05-10 09:54  Projrecon\Debug\Projrecon.sbr

     文件      15148  2007-05-10 09:53  Projrecon\Debug\ProjreconDoc.obj

     文件          0  2007-05-10 09:54  Projrecon\Debug\ProjreconDoc.sbr

     文件      20128  2007-05-10 09:53  Projrecon\Debug\ProjreconView.obj

     文件          0  2007-05-10 09:54  Projrecon\Debug\ProjreconView.sbr

     文件      21477  2007-05-10 09:53  Projrecon\Debug\ReconCircle.obj

     文件          0  2007-05-10 09:54  Projrecon\Debug\ReconCircle.sbr

     文件     105875  2007-05-10 09:53  Projrecon\Debug\StdAfx.obj

     文件    1375037  2007-05-10 09:53  Projrecon\Debug\StdAfx.sbr

     文件     238592  2007-05-10 16:42  Projrecon\Debug\vc60.idb

     文件     380928  2007-05-10 16:42  Projrecon\Debug\vc60.pdb

     文件       3904  2007-05-10 16:38  Projrecon\DialogCircle.cpp

     文件       1409  2003-12-09 21:39  Projrecon\DialogCircle.h

     文件       5881  2007-05-10 14:41  Projrecon\MainFrm.cpp

     文件       1899  2003-12-26 16:24  Projrecon\MainFrm.h

     文件      10969  2004-01-06 13:22  Projrecon\Projcircle.cpp

     文件       1424  2003-12-25 21:25  Projrecon\Projcircle.h

............此处省略31个文件信息

评论

共有 条评论

相关资源