Print Page | Close Window

Context menu in ActiveX

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=2129
Printed Date: 06 October 2024 at 2:42am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Context menu in ActiveX
Posted By: Sergey
Subject: Context menu in ActiveX
Date Posted: 20 April 2005 at 1:28am

Do you have any example how to create context menu (Office 2003 style) in MFC activeX control (inherits COleControl). I have to replace the following MFC code:

void MyControl::OnContextMenu(CWnd* , CPoint p)

{

......

CMenu menu;

menu.LoadMenu(MY_RES);

CMenu * pMenu = menu.GetSubMenu(0);

pMenu->TrackPopupMenu(TPM_RIGHTBUTTON, point.x, point.y, this);

}

Thanks,

Sergey




Replies:
Posted By: Sergey
Date Posted: 20 April 2005 at 3:21am

I found solution.

Thanks,

Sergey




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