I have a dialog box with several comboboxes in it as a member variables. The control wizard lets me create handlers for the comboboxes for the CBN_KILLFOCUS message. For example, one such handler is automatically called
void MyDlg::OnKillfocusMyCombo()
My expectation is that this handler would be called just as soon as I tab out of it. But it doesn't get called.
I ran into the same issue. This is a bug in MFC. (It's over 4 years later and it is still there.) Somehow
ON_CBN_KILLFOCUShandler is never called although the Win32CBN_KILLFOCUSnotification itself is broadcast.To fix this override the
WindowProcfor the dialog manually (Win32-way):