This message handler is mandatory when the control should be able to send its value to the application without using the DDX mechanisms. This is useful when the application should be notified about changes without closing the embedding dialog.
void CHertzEdit::OnKillFocus(CWnd* pNewWnd)
{
CEdit::OnKillFocus(pNewWnd);
GetValueFromWindow();
SetValueToWindow();
}