Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Handling ON_WM_KILLFOCUS
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Handling ON_WM_KILLFOCUS

 Post Reply Post Reply
Author
Message
sylvan View Drop Down
Newbie
Newbie
Avatar

Joined: 07 July 2008
Location: United States
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote sylvan Quote  Post ReplyReply Direct Link To This Post Topic: Handling ON_WM_KILLFOCUS
    Posted: 07 July 2008 at 9:35pm
Hi,

I need to disable various buttons etc. on a dialog based on whether the CXTPReportControl on the dialog has focus or not.  I'm trying to handle it like so in the dlg class the control resides:

ON_NOTIFY(ON_WM_KILLFOCUS,IDC_XTPREPORT,OnReportLostFocus)

but the event isn't firing.  If I replace ON_WM_KILLFOCUS with XTP_NM_REPORT_SELCHANGED OnReportLostFocus() is called everytime the selection is changed.

I know the control has a child CListBox...do I need to do something with ON_LBN_KILLFOCUS?

What am I doing incorrectly?

Thanks
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 08 July 2008 at 12:42pm
Hi;

Derive from CXTReportControl and catch WM_KILLFOCUS, then forward it to the parent/owner of the control.
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.