00001
00002
00003
00004
00005
00006
00007
00009
00010 #if !defined(AFX_DOUBLECELL_H__A0B7DA0A_0AFE_4567_A00E_846C96D7507A__INCLUDED_)
00011 #define AFX_DOUBLECELL_H__A0B7DA0A_0AFE_4567_A00E_846C96D7507A__INCLUDED_
00012
00013 #if _MSC_VER > 1000
00014 #pragma once
00015 #endif // _MSC_VER > 1000
00016
00017 #include "../GridCtrl_src/GridCell.h"
00018 #include "../GridCtrl_src/InPlaceEdit.h"
00019
00020 class CGridCellDouble : public CGridCell
00021 {
00022 friend class CGridCtrl;
00023 DECLARE_DYNCREATE(CGridCellDouble)
00024
00025
00026 DWORD m_dwStyle;
00027
00028 public:
00029 CGridCellDouble();
00030 virtual ~CGridCellDouble();
00031
00032
00033 public:
00034 virtual BOOL Edit(int nRow, int nCol, CRect rect, CPoint point, UINT nID, UINT nChar);
00035
00036 };
00037
00038 class CInPlaceDoubleEdit : public CInPlaceEdit
00039 {
00040
00041 public:
00042 CInPlaceDoubleEdit(CWnd* pParent, CRect& rect, DWORD dwStyle, UINT nID,
00043 int nRow, int nColumn, CString sInitText, UINT nFirstChar);
00044
00045
00046
00047
00048
00049 protected:
00050
00051
00052
00053 public:
00054
00055
00056
00057 protected:
00058
00059 afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
00060
00061
00062 DECLARE_MESSAGE_MAP()
00063
00064 private:
00065
00066 };
00067
00068 #endif // !defined(AFX_DOUBLECELL_H__A0B7DA0A_0AFE_4567_A00E_846C96D7507A__INCLUDED_)