// ViewType2.cpp // // (c)1998-2025 Codejock Software, All Rights Reserved. // // THIS SOURCE FILE IS THE PROPERTY OF CODEJOCK SOFTWARE AND IS NOT TO BE // RE-DISTRIBUTED BY ANY MEANS WHATSOEVER WITHOUT THE EXPRESSED WRITTEN // CONSENT OF CODEJOCK SOFTWARE. // // THIS SOURCE CODE CAN ONLY BE USED UNDER THE TERMS AND CONDITIONS OUTLINED // IN THE XTREME TOOLKIT PRO LICENSE AGREEMENT. CODEJOCK SOFTWARE GRANTS TO // YOU (ONE SOFTWARE DEVELOPER) THE LIMITED RIGHT TO USE THIS SOFTWARE ON A // SINGLE COMPUTER. // // CONTACT INFORMATION: // support@codejock.com // http://www.codejock.com // ///////////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "MDIMenus.h" #include "ViewType2.h" #ifdef _DEBUG # define new DEBUG_NEW # undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CViewType2 IMPLEMENT_DYNCREATE(CViewType2, CEditView) CViewType2::CViewType2() { } CViewType2::~CViewType2() { } BEGIN_MESSAGE_MAP(CViewType2, CEditView) //{{AFX_MSG_MAP(CViewType2) // NOTE - the ClassWizard will add and remove mapping macros here. //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CViewType2 drawing void CViewType2::OnDraw(CDC* /*pDC*/) { } void CViewType2::OnInitialUpdate() { SetSampleDescriptionText( *this, _T("This sample demonstrates how to create different MDI views and bind ") _T("selected command bars controls to those views so that the controls ") _T("become visible only when a view they are bound to become active.\r\n\r\n") _T("This logic is implemented in CMainFrame::OnCreateControl, chech out ") _T("ExcludeDocTemplate and AssignDocTemplate method calls.")); } ///////////////////////////////////////////////////////////////////////////// // CViewType2 diagnostics #ifdef _DEBUG void CViewType2::AssertValid() const { CEditView::AssertValid(); } void CViewType2::Dump(CDumpContext& dc) const { CEditView::Dump(dc); } #endif //_DEBUG ///////////////////////////////////////////////////////////////////////////// // CViewType2 message handlers