- // [!output TREE_VIEW_IMPL] : implementation of the [!output TREE_VIEW_CLASS] class
- //
- #include "stdafx.h"
- #include "[!output APP_HEADER]"
- #include "[!output DOC_HEADER]"
- #include "[!output TREE_VIEW_HEADER]"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #endif
- // [!output TREE_VIEW_CLASS]
- IMPLEMENT_DYNCREATE([!output TREE_VIEW_CLASS], [!output TREE_VIEW_BASE_CLASS])
- BEGIN_MESSAGE_MAP([!output TREE_VIEW_CLASS], [!output TREE_VIEW_BASE_CLASS])
- [!if PRINTING]
- // Standard printing commands
- ON_COMMAND(ID_FILE_PRINT, &[!output TREE_VIEW_BASE_CLASS]::OnFilePrint)
- ON_COMMAND(ID_FILE_PRINT_DIRECT, &[!output TREE_VIEW_BASE_CLASS]::OnFilePrint)
- ON_COMMAND(ID_FILE_PRINT_PREVIEW, &[!output TREE_VIEW_BASE_CLASS]::OnFilePrintPreview)
- [!endif]
- END_MESSAGE_MAP()
- // [!output TREE_VIEW_CLASS] construction/destruction
- [!output TREE_VIEW_CLASS]::[!output TREE_VIEW_CLASS]()
- {
- [!if ACCESSIBILITY]
- EnableActiveAccessibility();
- [!endif]
- // TODO: add construction code here
- }
- [!output TREE_VIEW_CLASS]::~[!output TREE_VIEW_CLASS]()
- {
- }
- BOOL [!output TREE_VIEW_CLASS]::PreCreateWindow(CREATESTRUCT& cs)
- {
- // TODO: Modify the Window class or styles here by modifying the CREATESTRUCT cs
- return [!output TREE_VIEW_BASE_CLASS]::PreCreateWindow(cs);
- }
- [!if PRINTING]
- // [!output TREE_VIEW_CLASS] printing
- BOOL [!output TREE_VIEW_CLASS]::OnPreparePrinting(CPrintInfo* pInfo)
- {
- // default preparation
- return DoPreparePrinting(pInfo);
- }
- void [!output TREE_VIEW_CLASS]::OnDraw(CDC* /*pDC*/)
- {
- [!output DOC_CLASS]* pDoc = GetDocument();
- ASSERT_VALID(pDoc);
- // TODO: add draw code for native data here
- }
- void [!output TREE_VIEW_CLASS]::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
- {
- // TODO: add extra initialization before printing
- }
- void [!output TREE_VIEW_CLASS]::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
- {
- // TODO: add cleanup after printing
- }
- [!endif]
- void [!output TREE_VIEW_CLASS]::OnInitialUpdate()
- {
- [!output TREE_VIEW_BASE_CLASS]::OnInitialUpdate();
- // TODO: You may populate your TreeView with items by directly accessing
- // its tree control through a call to GetTreeCtrl().
- }
- // [!output TREE_VIEW_CLASS] diagnostics
- #ifdef _DEBUG
- void [!output TREE_VIEW_CLASS]::AssertValid() const
- {
- [!output TREE_VIEW_BASE_CLASS]::AssertValid();
- }
- void [!output TREE_VIEW_CLASS]::Dump(CDumpContext& dc) const
- {
- [!output TREE_VIEW_BASE_CLASS]::Dump(dc);
- }
- [!output DOC_CLASS]* [!output TREE_VIEW_CLASS]::GetDocument() // non-debug version is inline
- {
- ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS([!output DOC_CLASS])));
- return ([!output DOC_CLASS]*)m_pDocument;
- }
- #endif //_DEBUG
- // [!output TREE_VIEW_CLASS] message handlers