//////////////////////////////////////////////// //CFGHexEdit V.1.00 //Programma realizzato da Francesco Germinara //www.germinara.it 2005 FREEWARE //info@germinara.it //http://www.germinara.it //programmatore PINEROLO TORINO ITALIA //Data realizzazione: 10/luglio/2005 //////////////////////////////////////////////// // // Thanks to Eugene Pavlov (http://www.softerra.com) for the good job on the // ACTIVEX HEX EDIT CONTRON. // // Some Method are taken from Eugene Pavlov source code. // // CFGHexEdit.cpp : implementation file // #if !defined(AFX_FGEDITVIEW_H__F852CBD1_E5B6_4B9D_8F48_59806D0A8BF5__INCLUDED_) #define AFX_FGEDITVIEW_H__F852CBD1_E5B6_4B9D_8F48_59806D0A8BF5__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include "CFGHexEdit.h" class CFGEditView : public CView { protected: // create from serialization only CFGEditView(); DECLARE_DYNCREATE(CFGEditView) // Attributes public: CFGEditDoc* GetDocument(); CFGHexEdit theEditor; // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CFGEditView) public: virtual void OnDraw(CDC* pDC); // overridden to draw this view virtual BOOL PreCreateWindow(CREATESTRUCT& cs); virtual void OnInitialUpdate(); protected: virtual BOOL OnPreparePrinting(CPrintInfo* pInfo); virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo); virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo); //}}AFX_VIRTUAL // Implementation public: virtual ~CFGEditView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: // Generated message map functions protected: //{{AFX_MSG(CFGEditView) afx_msg void OnSize(UINT nType, int cx, int cy); afx_msg BOOL OnEraseBkgnd(CDC* pDC); afx_msg void OnTestRead(); afx_msg void OnFunctionSetallbytesto0xff(); afx_msg void OnFunctionOpenfile(); afx_msg void OnFunctionSavefile(); afx_msg void OnSetFocus(CWnd* pOldWnd); //}}AFX_MSG DECLARE_MESSAGE_MAP() public: afx_msg void OnFunctionOpenindialogsample(); }; #ifndef _DEBUG // debug version in FGEditView.cpp inline CFGEditDoc* CFGEditView::GetDocument() { return (CFGEditDoc*)m_pDocument; } #endif ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_FGEDITVIEW_H__F852CBD1_E5B6_4B9D_8F48_59806D0A8BF5__INCLUDED_)