Handling ON_WM_KILLFOCUS |
Post Reply |
Author | |
sylvan
Newbie Joined: 07 July 2008 Location: United States Status: Offline Points: 1 |
Post Options
Thanks(0)
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 |
|
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1201 |
Post Options
Thanks(0)
|
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 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |