-
ActiveX problem
I have code like this :
BOOL CWebContManDlg::PreTranslateMessage(MSG* pMsg) //Intercept events
from ActiveX WebBrowser control
{ // placed in dialog based app
CMenu menu; // My own menu, because i wan't default context menu
if (pMsg->message == WM_RBUTTONDOWN) // purpose is downloading control
from web site
{
if (menu.LoadMenu(IDR_MENU1)) // If is my menu OK, show menu ( with
options SaveAs
{ // and exit without save).
MSG* sMsg=pMsg;
CMenu* pPopup = menu.GetSubMenu(0);
ASSERT(pPopup != NULL);
pPopup->TrackPopupMenu(TPM_LEFTALIGN | TPM_LEFTBUTTON,pMsg->pt.x,
pMsg->pt.y,AfxGetMainWnd());
//THERE START MY PROBLEM ====> How to catch internet link from page where
right button is clicked ?
// Without intercepting, i push left button and seee context menu, with
// options save, copy...properties. In properties i can see whole link
// file name, file address, file type - so, all informations are somewhere
// around, but where ? If my next line of code is
DispatchMessage(pMsg); // i have context menu with all infos.
// So, question is : WHERE IS ...... INFO ?
///////////////////////////////////////////////////////////////////////////
return true;
}
}
return CDialog::PreTranslateMessage(pMsg);
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks