// RibbonMDISampleView.h // // (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 // ///////////////////////////////////////////////////////////////////////////// #if !defined(AFX_RIBBONMDISAMPLEVIEW_H__3DA66699_EE86_48C3_A0F4_03832F5402BE__INCLUDED_) # define AFX_RIBBONMDISAMPLEVIEW_H__3DA66699_EE86_48C3_A0F4_03832F5402BE__INCLUDED_ # if _MSC_VER > 1000 # pragma once # endif // _MSC_VER > 1000 class CRibbonMDISampleCntrItem; class CRibbonMDISampleDoc; class CMainFrame; class CRibbonMDISampleView : public CRichEditView { typedef CRichEditView ParentView; DECLARE_DYNCREATE(CRibbonMDISampleView); // Construction protected: CRibbonMDISampleView(); // Operations public: CRibbonMDISampleDoc* GetDocument() const; CMainFrame* GetMainFrame() const; // Overrides public: virtual ~CRibbonMDISampleView(); virtual BOOL PreCreateWindow(CREATESTRUCT& cs); virtual void OnDraw(CDC* pDC); virtual void OnInitialUpdate(); // called first time after construct virtual BOOL OnPreparePrinting(CPrintInfo* pInfo); // Implementation public: void OnThemeChanged(); # ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; # endif protected: afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg void OnEmptyCommand(); afx_msg void OnUpdateEmptyCommand(CCmdUI* pCmdUI); afx_msg void OnDestroy(); DECLARE_MESSAGE_MAP() // Attributes private: }; # ifndef _DEBUG // debug version in RibbonMDISampleView.cpp AFX_INLINE CRibbonMDISampleDoc* CRibbonMDISampleView::GetDocument() const { return reinterpret_cast(m_pDocument); } # endif ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_RIBBONMDISAMPLEVIEW_H__3DA66699_EE86_48C3_A0F4_03832F5402BE__INCLUDED_)