Print Page | Close Window

OnContextMenu not execute

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=8762
Printed Date: 02 March 2025 at 3:24pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: OnContextMenu not execute
Posted By: Makarand
Subject: OnContextMenu not execute
Date Posted: 13 November 2007 at 1:58am
Hi Oleg,

I have toolbar which is having set of buttons.
class CCmcCustomToolBar : public CXTPToolBar

I trap MFC message
afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);

Whenever I right click on toolbar button function OnContextMenu not execute.

I have gone through the examples but not able to find the code..

please help me.
waiting for reply

Thanks in advance






Replies:
Posted By: Oleg
Date Posted: 13 November 2007 at 11:20am
Catch WM_RBUTTONUP instead.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Makarand
Date Posted: 14 November 2007 at 7:40am
Thanks a lot Oleg.

using WM_RBUTTONUP I am able to display popup menu..
I am wondering why OnContextMenu is not executed ?





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