Mercurial > flash_v2
comparison host/tools/Utils/win32/CellEdit.cpp @ 130:eb9fd8c04db3 ecos-sw-2000-10-23
Merge from eCos master repository on 2000-10-23-17:01:37-BST
| author | jlarmour |
|---|---|
| date | Mon, 23 Oct 2000 17:10:57 +0000 |
| parents | 435cced73e2f |
| children |
comparison
equal
deleted
inserted
replaced
| 129:605a0fc6f385 | 130:eb9fd8c04db3 |
|---|---|
| 25 // CellEdit.cpp : implementation file | 25 // CellEdit.cpp : implementation file |
| 26 // | 26 // |
| 27 | 27 |
| 28 #include "stdafx.h" | 28 #include "stdafx.h" |
| 29 #include "CellEdit.h" | 29 #include "CellEdit.h" |
| 30 #include "cellview.h" | |
| 31 #include "Configtool.h" | |
| 30 | 32 |
| 31 #ifdef _DEBUG | 33 #ifdef _DEBUG |
| 32 #define new DEBUG_NEW | 34 #define new DEBUG_NEW |
| 33 #undef THIS_FILE | 35 #undef THIS_FILE |
| 34 static char THIS_FILE[] = __FILE__; | 36 static char THIS_FILE[] = __FILE__; |
| 49 | 51 |
| 50 BEGIN_MESSAGE_MAP(CCellEdit, CCell) | 52 BEGIN_MESSAGE_MAP(CCellEdit, CCell) |
| 51 //{{AFX_MSG_MAP(CCellEdit) | 53 //{{AFX_MSG_MAP(CCellEdit) |
| 52 ON_WM_CREATE() | 54 ON_WM_CREATE() |
| 53 ON_WM_CHAR() | 55 ON_WM_CHAR() |
| 56 ON_WM_KILLFOCUS() | |
| 54 //}}AFX_MSG_MAP | 57 //}}AFX_MSG_MAP |
| 55 END_MESSAGE_MAP() | 58 END_MESSAGE_MAP() |
| 56 | 59 |
| 57 ///////////////////////////////////////////////////////////////////////////// | 60 ///////////////////////////////////////////////////////////////////////////// |
| 58 // CCellEdit message handlers | 61 // CCellEdit message handlers |
| 68 return -1; | 71 return -1; |
| 69 | 72 |
| 70 SendMessage(WM_SETFONT,(WPARAM)(HFONT)GetStockObject(DEFAULT_GUI_FONT),0); | 73 SendMessage(WM_SETFONT,(WPARAM)(HFONT)GetStockObject(DEFAULT_GUI_FONT),0); |
| 71 SendMessage(WM_SETTEXT,0,(LPARAM)(LPCTSTR)m_strInitialValue); | 74 SendMessage(WM_SETTEXT,0,(LPARAM)(LPCTSTR)m_strInitialValue); |
| 72 return 0; | 75 return 0; |
| 76 } | |
| 77 | |
| 78 void CCellEdit::OnKillFocus(CWnd*) | |
| 79 { | |
| 80 CConfigTool::GetCellView()->CancelCellEdit(); | |
| 73 } | 81 } |
| 74 | 82 |
| 75 void CCellEdit::OnEditCopy () | 83 void CCellEdit::OnEditCopy () |
| 76 { | 84 { |
| 77 SendMessage(WM_COPY,0,0); | 85 SendMessage(WM_COPY,0,0); |
