Print Page | Close Window

OnChar event

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=12657
Printed Date: 07 May 2024 at 2:56pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: OnChar event
Posted By: adico
Subject: OnChar event
Date Posted: 11 November 2008 at 12:16pm
Is there a way to capture the OnChar event of a  CXTPReportRecordItem?

I am currently overriding CXTPReportRecordItemText
inside header I have overridden the following:
    virtual void OnBeginEdit(XTP_REPORTRECORDITEM_ARGS* pItemArgs);
   virtual BOOL OnChar(XTP_REPORTRECORDITEM_ARGS* pItemArgs, UINT nChar);

in the .cpp file, the code hits the breakpoint inside OnBeginEdit but not inside OnChar method.

Am I missing something ? Please advise

-------------
I am not my memories...I am my dreams!



Replies:
Posted By: adico
Date Posted: 12 November 2008 at 10:15am
I figured it out by using CXTWndHook and listen for WM_CHAR message inside WindowProc

-------------
I am not my memories...I am my dreams!



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