diff 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
line wrap: on
line diff
--- a/host/tools/Utils/win32/CellEdit.cpp
+++ b/host/tools/Utils/win32/CellEdit.cpp
@@ -27,6 +27,8 @@
 
 #include "stdafx.h"
 #include "CellEdit.h"
+#include "cellview.h"
+#include "Configtool.h"
 
 #ifdef _DEBUG
 #define new DEBUG_NEW
@@ -51,6 +53,7 @@ BEGIN_MESSAGE_MAP(CCellEdit, CCell)
 	//{{AFX_MSG_MAP(CCellEdit)
 	ON_WM_CREATE()
 	ON_WM_CHAR()
+	ON_WM_KILLFOCUS()
 	//}}AFX_MSG_MAP
 END_MESSAGE_MAP()
 
@@ -72,6 +75,11 @@ int CCellEdit::OnCreate(LPCREATESTRUCT l
 	return 0;
 }
 
+void CCellEdit::OnKillFocus(CWnd*)
+{
+    CConfigTool::GetCellView()->CancelCellEdit();
+}
+
 void CCellEdit::OnEditCopy   ()
 {
  SendMessage(WM_COPY,0,0);