VlanView.cpp
上传用户:hbytqc8
上传日期:2014-07-31
资源大小:527k
文件大小:2k
- // VlanView.cpp : implementation file
- //
- #include "stdafx.h"
- #include "NetMapDoc.h"
- #include "NetMap.h"
- #include "VlanView.h"
- #include "Mainfrm.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CVlanView
- IMPLEMENT_DYNCREATE(CVlanView, CFormView)
- CVlanView::CVlanView()
- : CFormView(CVlanView::IDD)
- {
- //{{AFX_DATA_INIT(CVlanView)
- // NOTE: the ClassWizard will add member initialization here
- //}}AFX_DATA_INIT
- }
- CVlanView::~CVlanView()
- {
- }
- void CVlanView::DoDataExchange(CDataExchange* pDX)
- {
- CFormView::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CVlanView)
- // NOTE: the ClassWizard will add DDX and DDV calls here
- //}}AFX_DATA_MAP
- }
- void CVlanView::OnInitialUpdate()
- {
- CFormView::OnInitialUpdate();
- GetParentFrame()->RecalcLayout();
- ResizeParentToFit();
- CMainFrame *pMain=(CMainFrame *)AfxGetApp()->m_pMainWnd;
- pMain->pVlanView=this;
- // CNetMapDoc *pDoc=(CNetMapDoc *)GetDocument();
- // MessageBox(pDoc->s);
- }
- BEGIN_MESSAGE_MAP(CVlanView, CFormView)
- //{{AFX_MSG_MAP(CVlanView)
- // NOTE - the ClassWizard will add and remove mapping macros here.
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CVlanView diagnostics
- #ifdef _DEBUG
- void CVlanView::AssertValid() const
- {
- CFormView::AssertValid();
- }
- void CVlanView::Dump(CDumpContext& dc) const
- {
- CFormView::Dump(dc);
- }
- #endif //_DEBUG
- /////////////////////////////////////////////////////////////////////////////
- // CVlanView message handlers