Print Page | Close Window

Capturing ON_WM_CONTEXTMENU

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=9501
Printed Date: 01 July 2024 at 2:39am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Capturing ON_WM_CONTEXTMENU
Posted By: andrewg
Subject: Capturing ON_WM_CONTEXTMENU
Date Posted: 05 February 2008 at 12:57pm
Is there an easy way of capturin the ON_WM_CONTEXTMENU() in the report view? I figure the easiest way would be to derive our own custom ReportControl then set it using the SetReportCtrl() method. Just curious if there was an easier way.



Replies:
Posted By: mgampi
Date Posted: 05 February 2008 at 1:08pm
Hello;
The report control sends a WM_NOTIFY with a notification code of NM_RCLICK to the parent of the control. You can catch this and display your own context menu. For a sample see Samples\ReportControl\ReportSample


-------------
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