Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

70 lines
1.4 KiB

#include "Document.h"
#include "MNLBUIData.h"
#include "resource.h"
IMPLEMENT_DYNCREATE( Document, CDocument )
Document::Document()
{
//
// load the images which are used.
//
m_images48x48 = new CImageList;
m_images48x48->Create( 16, // x
16, // y
ILC_COLOR16, // 16 bit color
0, // initially image list is empty
10 ); // max images is 10. This value arbitrary.
// Add the icons which we are going to use.
m_images48x48->Add( AfxGetApp()->LoadIcon( IDI_WORLD));
m_images48x48->Add( AfxGetApp()->LoadIcon( IDI_CLUSTER));
m_images48x48->Add( AfxGetApp()->LoadIcon( IDI_HOST_STARTED));
m_images48x48->Add( AfxGetApp()->LoadIcon( IDI_HOST_STOPPED));
m_images48x48->Add( AfxGetApp()->LoadIcon( IDI_PORTRULE) );
m_images48x48->Add( AfxGetApp()->LoadIcon( IDI_PENDING ));
}
void
Document::registerLeftPane( CTreeView* treeView )
{
m_treeView = treeView;
}
CTreeCtrl&
Document::getLeftPane()
{
return m_treeView->GetTreeCtrl();
}
void
Document::registerStatusPane( CEditView* editView )
{
m_editView = editView;
}
CEdit&
Document::getStatusPane()
{
return m_editView->GetEditCtrl();
}
void
Document::registerListPane( CListView* listView )
{
m_listView = listView;
}
CListCtrl&
Document::getListPane()
{
return m_listView->GetListCtrl();
}