Print Page | Close Window

Handling ON_WM_KILLFOCUS

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=11333
Printed Date: 16 May 2024 at 12:11am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Handling ON_WM_KILLFOCUS
Posted By: sylvan
Subject: Handling ON_WM_KILLFOCUS
Date 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



Replies:
Posted By: mgampi
Date 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 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net