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

Capturing ON_WM_CONTEXTMENU

 Post Reply Post Reply
Author
Message
andrewg View Drop Down
Groupie
Groupie


Joined: 24 September 2007
Status: Offline
Points: 41
Post Options Post Options   Thanks (0) Thanks(0)   Quote andrewg Quote  Post ReplyReply Direct Link To This Post Topic: Capturing ON_WM_CONTEXTMENU
    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.
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: 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 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.125 seconds.