Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - OnContextMenu not execute
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

OnContextMenu not execute

 Post Reply Post Reply
Author
Message
Makarand View Drop Down
Senior Member
Senior Member
Avatar

Joined: 27 February 2007
Location: India
Status: Offline
Points: 140
Post Options Post Options   Thanks (0) Thanks(0)   Quote Makarand Quote  Post ReplyReply Direct Link To This Post Topic: OnContextMenu not execute
    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



Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 13 November 2007 at 11:20am
Catch WM_RBUTTONUP instead.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Makarand View Drop Down
Senior Member
Senior Member
Avatar

Joined: 27 February 2007
Location: India
Status: Offline
Points: 140
Post Options Post Options   Thanks (0) Thanks(0)   Quote Makarand Quote  Post ReplyReply Direct Link To This Post 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 ?


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.031 seconds.