Структура вычислительной системы: трехмерная с размерностью 4х4х3, страница 12

m_memDC.Ellipse(pp->pl3[kp][0]-r,pp->pl3[kp][1]-r,pp->pl3[kp][0]+r,pp->pl3[kp][1]+r);

                                    m_memDC.SelectObject(old);

                                                      }                                 

                  sumtr=0;

}

                  //pDC->Ellipse(20,20,40,40);

                  pDC->BitBlt(0,0,maxX,maxY,&m_memDC,0,0,SRCCOPY);

WhiteBckgn();

}

/////////////////////////////////////////////////////////////////////////////

#ifdef _DEBUG

void CVkss1View::AssertValid() const

{

                  CView::AssertValid();

}

void CVkss1View::Dump(CDumpContext& dc) const

{

                  CView::Dump(dc);

}

CVkss1Doc* CVkss1View::GetDocument() // non-debug version is inline

{

                  ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CVkss1Doc)));

                  return (CVkss1Doc*)m_pDocument;

}

#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////

// CVkss1View message handlers

void CVkss1View::OnParametrs()

{//CMainFrame *pp=(CMainFrame*)(AfxGetApp()->m_pMainWnd);

                  CVkss1Dlg VDlg11;

                  VDlg11.DoModal();

                                    Invalidate(NULL);

}

void CVkss1View::OnPaint()

{

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

                  // TODO: Add your message handler code here

                  OnDraw(&dc);

}

void CVkss1View::WhiteBckgn()

{                m_bkbrush.CreateStockObject(WHITE_BRUSH);

                  m_memDC.SelectObject(&m_bkbrush);

                  m_memDC.PatBlt(0,0,maxX,maxY,PATCOPY);

                                    m_bkbrush.CreateStockObject(NULL_BRUSH);

                                    m_memDC.SelectObject(&m_bkbrush);

                                    m_memDC.PatBlt(0,0,maxX,maxY,PATCOPY);

}

void CVkss1View::virtwin()

{ if(one==1)return;

                                    one=1;

                  maxX=GetSystemMetrics(SM_CXSCREEN);

                  maxY=GetSystemMetrics(SM_CYSCREEN);

                                    CClientDC DC(this);

                  m_memDC.CreateCompatibleDC(&DC);

                  m_bmp.CreateCompatibleBitmap(&DC,maxX,maxY);

                  m_memDC.SelectObject(&m_bmp);

WhiteBckgn();

}

// MainFrm.h : interface of the CMainFrame class

//

/////////////////////////////////////////////////////////////////////////////

#include "cpu.h"

#include "Vkss1Dlg.h"

#if !defined(AFX_MAINFRM_H__3218DAF5_12E8_11D5_B96C_C712830F7F94__INCLUDED_)

#define AFX_MAINFRM_H__3218DAF5_12E8_11D5_B96C_C712830F7F94__INCLUDED_

#if _MSC_VER > 1000

#pragma once

#endif // _MSC_VER > 1000

class CMainFrame : public CFrameWnd

{

protected: // create from serialization only

                  CMainFrame();

                  DECLARE_DYNCREATE(CMainFrame)

// Attributes

public:

                  CVkss1Dlg *VDlg1;

                  int pl1[16][4];

                  int pl2[16][4];

                  int pl3[16][4];

                  int x,y,dx,dy,dxpl;

//                int pn[48];

                  cpu *pcpumf[48];

// Operations

public:

// Overrides

                  // ClassWizard generated virtual function overrides

                  //{{AFX_VIRTUAL(CMainFrame)

                  virtual BOOL PreCreateWindow(CREATESTRUCT& cs);

                  //}}AFX_VIRTUAL

// Implementation

public:

                  virtual ~CMainFrame();

#ifdef _DEBUG

                  virtual void AssertValid() const;

                  virtual void Dump(CDumpContext& dc) const;

#endif

protected:  // control bar embedded members

                  CStatusBar  m_wndStatusBar;

// Generated message map functions

protected:

                  //{{AFX_MSG(CMainFrame)

                  afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);