📄 set8view.cpp
字号:
// Set8View.cpp : implementation file
//
#include "stdafx.h"
#include "CDMS.h"
#include "Set8View.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CSet8View
IMPLEMENT_DYNCREATE(CSet8View, CFormView)
CSet8View::CSet8View()
: CFormView(CSet8View::IDD)
{
//{{AFX_DATA_INIT(CSet8View)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
m_pMainFrame = NULL;
}
CSet8View::~CSet8View()
{
}
void CSet8View::DoDataExchange(CDataExchange* pDX)
{
CFormView::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CSet8View)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CSet8View, CFormView)
//{{AFX_MSG_MAP(CSet8View)
ON_WM_DESTROY()
ON_WM_PAINT()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CSet8View diagnostics
#ifdef _DEBUG
void CSet8View::AssertValid() const
{
CFormView::AssertValid();
}
void CSet8View::Dump(CDumpContext& dc) const
{
CFormView::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CSet8View message handlers
void CSet8View::OnInitialUpdate()
{
CFormView::OnInitialUpdate();
/*----隐藏滚动条----*/
CSize sizeTotal;
sizeTotal.cx = sizeTotal.cy = 0;
SetScrollSizes(MM_TEXT, sizeTotal);
/*----隐藏滚动条----*/
//<-------------获取主框架指针------------->
m_pMainFrame = (CMainFrame*)AfxGetMainWnd();
//<-------------保存窗口指针------------->
m_pMainFrame->m_hViewSet8 = this->m_hWnd;
// TODO: Add your specialized code here and/or call the base class
InitCobArray();
}
void CSet8View::InitCobArray()
{
/*
m_staticArray.SetSize(52);
m_staticArray.SetAt(0,&m_cMP1);
m_staticArray.SetAt(1,&m_cMP2);
*/
}
void CSet8View::OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView)
{
// TODO: Add your specialized code here and/or call the base class
if(bActivate)
{
//设置当前活动视图标志
m_pMainFrame->SetCurActiveView(VIEW_TYPE_SET8);//
}
CFormView::OnActivateView(bActivate, pActivateView, pDeactiveView);
}
LRESULT CSet8View::WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
{
// TODO: Add your specialized code here and/or call the base class
switch(message)
{
case UM_ACTIVATE_VIEW8:
this->GetParentFrame()->ActivateFrame();
break;
case UM_COLLECTCOMPLETE:
for(int i=0; i<1024; i++)
{
m_nData[i] = m_pMainFrame->m_nOriginalData[7][i];
}
// DrawBackgroundOfTimeDomainWave();
break;
}
return CFormView::WindowProc(message, wParam, lParam);
}
void CSet8View::OnDestroy()
{
m_pMainFrame->m_hViewSet6 = NULL;
CFormView::OnDestroy();
// TODO: Add your message handler code here
}
void CSet8View::OnPaint()
{
CPaintDC dc(this); // device context for painting
// TODO: Add your message handler code here
// Do not call CFormView::OnPaint() for painting messages
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -