Solved

OnKillFocus not executing

Posted on 1998-10-26
3
331 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

Industry Leaders: 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!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB.NET how to use the Vertical ScrollBar 5 119
Detect CR LF to each line 12 174
Change owner from userA to server Local Administrators 7 71
wordmultiple challenge 12 154
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

713 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