Solved

OnKillFocus not executing

Posted on 1998-10-26
3
332 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to determine file rename from EventLog ? 2 62
substring method in java 1 142
centeredAverage challenge 8 188
withoutTen challenge 14 141
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.

751 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