Context menu in ActiveX |
Post Reply |
Author | |
Sergey
Newbie Joined: 15 November 2004 Status: Offline Points: 18 |
Post Options
Thanks(0)
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 |
|
Sergey
Newbie Joined: 15 November 2004 Status: Offline Points: 18 |
Post Options
Thanks(0)
|
I found solution. Thanks, Sergey |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |