Problem with KillFocus
------------------------------------------------------------
When a cell is opened for edit a CEdit is created. If I then do anything that removes the focus from the edit box the OnKillFocus method is activated. However, this causes the edit box to be deleted. What I need to do is be able to validate the contents of the cell and, if not valid (for whatever reason) display a messagebox and return focus to the edit box. when I display the messagebox, because focus has been removed from the cell the OnKillFocus method is activated.
------------------------------------------------------------
When a cell is opened for edit a CEdit is created. If I then do anything that removes the focus from the edit box the OnKillFocus method is activated. However, this causes the edit box to be deleted. What I need to do is be able to validate the contents of the cell and, if not valid (for whatever reason) display a messagebox and return focus to the edit box. when I display the messagebox, because focus has been removed from the cell the OnKillFocus method is activated.