Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Want to capture Event from MS Web browser (shdocvw.dll)

Want to capture Event from MS Web browser (shdocvw.dll)

Scheduled Pinned Locked Moved C / C++ / MFC
comtutorialquestionhtml
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jetli Jerry
    wrote on last edited by
    #1

    Hi all, I am new to ole/com. I have dialog based application in which i have inserted shdocvw.dll activex component. I can load html,doc,and other documents. via m_shBrowser.Navigate((LPCTSTR)m_sPathUrl , &vtEmpty, &vtEmpty, &vtEmpty, &vtEmpty); It loads succesfully. ( if i open .doc file then winword.exe is loaded in task manager. ?) Now I want to caputure LBUTTONDOWN,RBUTTONDOWN, MOUSEMOVE message.... I have tried with message map macros .... IT Works when there is no document loaded. But when i load/open any document then I am not able to get any of above message. i have tried with DefWindowProc() handler also but with no luck. I have searched on net but havent found reason WHY? and also not found how to do above. Can anyone guide me how to capture above and such messages? i dont want to display mouse when it is on the browser control.... and also not want to generate default menu.. instead display my menu.... can anyone point how can i implement? do i have to create ole eventsink? if so then how? Thank in advance. Jetli conclusion means Coming to wrong Decision with confidence

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups