Total Pageviews

Thursday, May 13, 2010

Lesson 11 - Disable popup menu in Macromedia Flash ActiveX

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);
}

No comments:

Post a Comment