Solved

OnKillFocus not executing

Posted on 1998-10-26
3
324 Views
Last Modified: 2013-11-20
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
Comment
Question by:solomon021499
3 Comments
 
LVL 1

Expert Comment

by:Bridge
ID: 1323862
try catching the WM_ACTIVATE message instead.
0
 
LVL 11

Expert Comment

by:mikeblas
ID: 1323863
Dialog boxes don't have keyboard focus; their controls do.

B ekiM
0
 

Accepted Solution

by:
gatkinso earned 50 total points
ID: 1323864
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now