Disable popup menu in Macromedia Flash ActiveX
-
As you propably know when you right click on Flash ActiveX control you get a popup menu with at least one entry: "About Macromedia Flash Player". I know that is not legal (without license from Macromedia) to change the methods of the control, but i just wondering if there is any way to kill the popup when user right clicks the control. Thanks in advance.
-
As you propably know when you right click on Flash ActiveX control you get a popup menu with at least one entry: "About Macromedia Flash Player". I know that is not legal (without license from Macromedia) to change the methods of the control, but i just wondering if there is any way to kill the popup when user right clicks the control. Thanks in advance.
There are few ways that you can try. I did it so long ago and I can not sure whether it is working now. _Hooking mouse message. That mean you intercept mouse message and by pass right click event. _Edit resource of flash.ocx and delete popup menu. It works only if customers do not install other newer ocx version. _Set Flash component to transparent. I do not know why that is but in VB form, popup menu did not display. Hope that help.
-
There are few ways that you can try. I did it so long ago and I can not sure whether it is working now. _Hooking mouse message. That mean you intercept mouse message and by pass right click event. _Edit resource of flash.ocx and delete popup menu. It works only if customers do not install other newer ocx version. _Set Flash component to transparent. I do not know why that is but in VB form, popup menu did not display. Hope that help.
I found a solution (may be little amateuristic, but works). Generate an MFC class fown Shockwave Flash ActiveX. Override the
PreTranslateMessage
:BOOL CShockwaveFlash::PreTranslateMessage(MSG* pMsg) { // TODO: Add your specialized code here and/or call the base class if(pMsg->message == WM_RBUTTONDOWN) { //Wow wasn't right click dude! pMsg->message = WM_LBUTTONDOWN; } return CWnd::PreTranslateMessage(pMsg); }
The job is done!