Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Getting the Control of Final Focus

4 views
Skip to first unread message

Joe Fox

unread,
Feb 26, 2012, 8:57:16 AM2/26/12
to
I've overriden 'OnKillFocus' in a bunch of controls, editboxes etc, so
that I can get data as soon as possible after the user has entered it.
However this isn't called when the dialog is closed.

I've tried overriding 'OnDestroy' and then using GetFocus, but this
doesn't seem to work; when I call GetDlgItemCtrl on the resultant CWnd
it always comes up '1'.

Any ideas?

Farnsworth

unread,
Feb 26, 2012, 9:35:31 PM2/26/12
to
"Joe Fox" <joef...@gmail.com> wrote in message
news:f8c20927-8044-40a1...@i2g2000vbv.googlegroups.com...
Try posting your question here:

http://social.msdn.microsoft.com/Forums/en-US/vcmfcatl/threads

MS Closed all their newsgroups about a year ago. You could still see and
post to these groups because many usenet servers don't honor newsgroup
removal requests.


Joe Fox

unread,
Feb 27, 2012, 8:33:13 AM2/27/12
to
On Feb 27, 2:35 am, "Farnsworth" <nos...@nospam.com> wrote:
> "Joe Fox" <joefo...@gmail.com> wrote in message
Thanks for the heads up, Farnsworth!
0 new messages