Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

InPlaceEdit.h

00001 
00002 // InPlaceEdit.h : header file
00003 //
00004 // MFC Grid Control - inplace editing class
00005 //
00006 // Written by Chris Maunder <cmaunder@mail.com>
00007 // Copyright (c) 1998-2002. All Rights Reserved.
00008 //
00009 // This code may be used in compiled form in any way you desire. This
00010 // file may be redistributed unmodified by any means PROVIDING it is 
00011 // not sold for profit without the authors written consent, and 
00012 // providing that this notice and the authors name and all copyright 
00013 // notices remains intact. 
00014 //
00015 // An email letting me know how you are using it would be nice as well. 
00016 //
00017 // This file is provided "as is" with no expressed or implied warranty.
00018 // The author accepts no liability for any damage/loss of business that
00019 // this product may cause.
00020 //
00021 // For use with CGridCtrl v2.10+
00022 //
00024 
00025 #if !defined(AFX_INPLACEEDIT_H__ECD42821_16DF_11D1_992F_895E185F9C72__INCLUDED_)
00026 #define AFX_INPLACEEDIT_H__ECD42821_16DF_11D1_992F_895E185F9C72__INCLUDED_
00027 
00028 #if _MSC_VER >= 1000
00029 #pragma once
00030 #endif // _MSC_VER >= 1000
00031 
00032 class CInPlaceEdit2 : public CEdit
00033 {
00034 // Construction
00035 public:
00036     CInPlaceEdit2(CWnd* pParent, CRect& rect, DWORD dwStyle, UINT nID,
00037                  int nRow, int nColumn, CString sInitText, UINT nFirstChar);
00038 
00039 // Attributes
00040 public:
00041  
00042 // Operations
00043 public:
00044      void EndEdit();
00045  
00046 // Overrides
00047      // ClassWizard generated virtual function overrides
00048      //{{AFX_VIRTUAL(CInPlaceEdit2)
00049         public:
00050         virtual BOOL PreTranslateMessage(MSG* pMsg);
00051         protected:
00052         virtual void PostNcDestroy();
00053         //}}AFX_VIRTUAL
00054  
00055 // Implementation
00056 public:
00057      virtual ~CInPlaceEdit2();
00058  
00059 // Generated message map functions
00060 protected:
00061     //{{AFX_MSG(CInPlaceEdit2)
00062     afx_msg void OnKillFocus(CWnd* pNewWnd);
00063     afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
00064     afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
00065         afx_msg UINT OnGetDlgCode();
00066         //}}AFX_MSG
00067     DECLARE_MESSAGE_MAP()
00068 
00069 private:
00070     int     m_nRow;
00071     int     m_nColumn;
00072     CString m_sInitText;
00073     UINT    m_nLastChar;
00074     BOOL    m_bExitOnArrows;
00075     CRect   m_Rect;
00076 };
00077  
00079 
00080 //{{AFX_INSERT_LOCATION}}
00081 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
00082 
00083 #endif // !defined(AFX_INPLACEEDIT_H__ECD42821_16DF_11D1_992F_895E185F9C72__INCLUDED_)

Generated on Tue Feb 17 02:03:07 2004 for harlem by doxygen 1.3.6