// GUI_VisualStudioView.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 // ///////////////////////////////////////////////////////////////////////////// #pragma once class CGUI_VisualStudioDoc; class CMainFrame; class CGUI_VisualStudioView : public CXTPSyntaxEditView { typedef CXTPSyntaxEditView ParentView; DECLARE_DYNCREATE(CGUI_VisualStudioView); // Construction protected: CGUI_VisualStudioView(); // Operations public: CGUI_VisualStudioDoc* GetDocument() const; CMainFrame* GetMainFrame() const; // Overrides public: virtual ~CGUI_VisualStudioView(); virtual BOOL PreCreateWindow(CREATESTRUCT& cs); virtual void OnDraw(CDC* pDC); virtual BOOL OnPreparePrinting(CPrintInfo* pInfo); virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo); virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo); virtual void OnInitialUpdate(); // called first time after construct // Implementation public: void RefreshColors(); BOOL ReadFileLines(LPCTSTR lpzFilePath, CString& strLines) const; protected: afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg void OnEmptyCommand(); afx_msg void OnUpdateEmptyCommand(CCmdUI* pCmdUI); afx_msg void OnContextMenu(CWnd* pWnd, CPoint point); afx_msg LRESULT OnSetControlTheme(WPARAM wParam, LPARAM lParam); DECLARE_MESSAGE_MAP() // Attributes private: BOOL m_bLoadConfigOnce; CString m_strIniData; CString m_strSchemaData; #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif }; #ifndef _DEBUG // debug version in GUI_VisualStudioView.cpp AFX_INLINE CGUI_VisualStudioDoc* CGUI_VisualStudioView::GetDocument() const { return reinterpret_cast(m_pDocument); } #endif