WORKSPACEBAR.CPP
上传用户:lvjun8202
上传日期:2013-04-30
资源大小:797k
文件大小:1k
- // WorkSpaceBar.cpp : implementation file
- //
- #include "stdafx.h"
- #include "oam.h"
- #include "WorkSpaceBar.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CWorkSpaceBar
- CWorkSpaceBar::CWorkSpaceBar()
- {
- }
- CWorkSpaceBar::~CWorkSpaceBar()
- {
- }
- BEGIN_MESSAGE_MAP(CWorkSpaceBar, COAMTabCtrlBar)
- //{{AFX_MSG_MAP(CWorkSpaceBar)
- ON_WM_CREATE()
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CWorkSpaceBar message handlers
- int CWorkSpaceBar::OnCreate(LPCREATESTRUCT lpCreateStruct)
- {
- if (COAMTabCtrlBar::OnCreate(lpCreateStruct) == -1)
- return -1;
-
- // TODO: Add your specialized creation code here
- m_TabImages.Create (IDB_IL_TAB, 16, 1, RGB(0,255,0));
- SetTabImageList(&m_TabImages);
- CCreateContext context ;
- context.m_pCurrentDoc = (CDocument *)CGlobalVariable::m_pMainDoc;
-
- context.m_pNewViewClass = RUNTIME_CLASS(CSnmp_cwdmView);
- AddView(_T("MIB树"), RUNTIME_CLASS(CSnmp_cwdmView),&context);
-
-
- SetActiveView(0);
- return 0;
- }