Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Context menu in ActiveX
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Context menu in ActiveX

 Post Reply Post Reply
Author
Message
Sergey View Drop Down
Newbie
Newbie


Joined: 15 November 2004
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote Sergey Quote  Post ReplyReply Direct Link To This Post Topic: Context menu in ActiveX
    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

Back to Top
Sergey View Drop Down
Newbie
Newbie


Joined: 15 November 2004
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote Sergey Quote  Post ReplyReply Direct Link To This Post Posted: 20 April 2005 at 3:21am

I found solution.

Thanks,

Sergey

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