Click here to Skip to main content
12,760,177 members (33,181 online)
Click here to Skip to main content


354 bookmarked
Posted 8 Apr 2003

Formula Editor

, 15 Apr 2003
Formula-editor for editing and exporting mathematical content
//  File:       FormulaInPlaceEdit.h
//  Version:
//  Created:    03-april-2002
//  Author:     Thorsten Wack
//  E-mail:
//  parts of Code by Chris Maunder and Matt Weagle (from GridCtrl)
// This code may be used in compiled form in any way you desire. This
// file may be redistributed unmodified by any means PROVIDING it is 
// not sold for profit without the authors written consent, and 
// providing that this notice and the authors name is included. If 
// the source code in  this file is used in any commercial application 
// then a simple email would be nice.
// This file is provided "as is" with no expressed or implied warranty.
// The author accepts no liability if it causes any damage whatsoever.


#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

#include "node.h"

class CFormulaInPlaceEdit : public CEdit
// Construction
	CFormulaInPlaceEdit(CWnd* pParent, CRect& rect, DWORD dwStyle, UINT nID,
                 CNode*, CString strInitText, UINT nFirstChar);

// Attributes
// Operations
	void EndEdit();
// Overrides
     // ClassWizard generated virtual function overrides
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	virtual void PostNcDestroy();
// Implementation
	virtual ~CFormulaInPlaceEdit();
	void RepositionWindow(CRect ctrlRect);
// Generated message map functions
    afx_msg void OnKillFocus(CWnd* pNewWnd);
    afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
    afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg UINT OnGetDlgCode();
	afx_msg void OnUpdate();
	CFont	m_ctrlFont;
    CNode*	m_pNode;
	CString m_strInitText;
    UINT    m_nLastChar;
    BOOL    m_bExitOnArrows;

// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(INPLACEEDIT_H__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Web Developer
Germany Germany
No Biography provided

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.170217.1 | Last Updated 16 Apr 2003
Article Copyright 2003 by tbw
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid