I have dialog with various control placed in designed time
and edit box created in runtime. What I want to know is
when runtime created editbox loses focus. I tried several
ways, from catching WM_KILLFOCUS to WM_COMMAND (with
EN_KILLFOCUS notification) but nothing worked. All this
was done in CMyDialog::PreTranslateMessage() and not even
one message with WM_KILLFOCUS ended in this method. Why is
that and isn't this method the first(lowest) possible
method for filtering messages in MFC? So if this is the
first one, all messages should first end up here,
including WM_KILLFOCUS.
CMyDialog::OnKillfocusEdit1() works fine for design time
controls.
Ultimatelly I want to know when editbox loses focus.
Parent of that editbox is not CMyDialog, but CListCtrl on
CMyDialog.
Thanks,
Bostjan