Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 350
  • Last Modified:

OnKillFocus not executing

I have a modeless dialog.  I'm trying to do some
processing when it looses focus, but the handler
(OnKillFocus) is not executing.
Why?
0
solomon021499
Asked:
solomon021499
1 Solution
 
BridgeCommented:
try catching the WM_ACTIVATE message instead.
0
 
mikeblasCommented:
Dialog boxes don't have keyboard focus; their controls do.

B ekiM
0
 
gatkinsoCommented:
Note that afx_msg void OnKillFocus(CWnd*) is not virtual....did you include ON_WM_KILLFOCUS in your message map?  

BTW, not being psychic makes it hard to answer your question when no code is provided   :)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now