// CommandBarsSampleView.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_COMMANDBARSSAMPLEVIEW_H__6B7D835F_EDB9_471D_81D9_76A70E0A67FC__INCLUDED_) # define AFX_COMMANDBARSSAMPLEVIEW_H__6B7D835F_EDB9_471D_81D9_76A70E0A67FC__INCLUDED_ # if _MSC_VER > 1000 # pragma once # endif // _MSC_VER > 1000 class CCommandBarsSampleCntrItem; class CCommandBarsSampleDoc; # include "RTF/ScrollRichEditViewEx.h" class CCommandBarsSampleView : public CScrollRichEditViewEx { protected: // create from serialization only CCommandBarsSampleView(); DECLARE_DYNCREATE(CCommandBarsSampleView) // Attributes public: CCommandBarsSampleDoc* GetDocument(); // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CCommandBarsSampleView) public: virtual BOOL PreCreateWindow(CREATESTRUCT& cs); protected: virtual void OnInitialUpdate(); // called first time after construct virtual BOOL OnPreparePrinting(CPrintInfo* pInfo); //}}AFX_VIRTUAL // Implementation public: virtual ~CCommandBarsSampleView(); # ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; # endif CXTPControlStatic* FindInfoControl(CXTPControl* pControl); // Operations protected: void OnFilePrintPreview(); // Generated message map functions protected: DECLARE_MESSAGE_MAP() //{{AFX_MSG(CCommandBarsSampleView) // NOTE - the ClassWizard will add and remove member functions here. // DO NOT EDIT what you see in these blocks of generated code ! afx_msg void OnDestroy(); afx_msg void OnRButtonUp(UINT nFlags, CPoint point); afx_msg void OnEditUndo(NMHDR* pNMHDR, LRESULT* pResult); afx_msg void OnListBoxControlSelChange(NMHDR* pNMHDR, LRESULT* pRes); afx_msg void OnListBoxControlPoup(NMHDR* pNMHDR, LRESULT* pRes); afx_msg void OnTableSelChange(NMHDR* pNMHDR, LRESULT* pResult); afx_msg void OnEnableCommand(CCmdUI* pCmdUI); afx_msg void OnInsertTable(NMHDR* pNMHDR, LRESULT* pResult); afx_msg void OnZoomSliderScroll(NMHDR* pNMHDR, LRESULT* pResult); afx_msg void OnZoomIn(); afx_msg void OnZoomOut(); //}}AFX_MSG protected: virtual CRect GetParentViewRect(); virtual COLORREF GetFrameColor(); virtual CScrollBar* GetParentScrollbar(int nBar) const; private: COLORREF m_clrText; int m_nZoom; }; # ifndef _DEBUG // debug version in RibbonMDISampleView.cpp inline CCommandBarsSampleDoc* CCommandBarsSampleView::GetDocument() { return (CCommandBarsSampleDoc*)m_pDocument; } # endif ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_COMMANDBARSSAMPLEVIEW_H__6B7D835F_EDB9_471D_81D9_76A70E0A67FC__INCLUDED_)