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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. ATL / WTL / STL
  4. Web Browser Control

Web Browser Control

Scheduled Pinned Locked Moved ATL / WTL / STL
help
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.
  • H Offline
    H Offline
    Harshapaulp
    wrote on last edited by
    #1

    The tab key doesnt work in Web Browser Control. The following code is supposed to resolve it. However the keydown message is not fired at all. There is another code below this one which is supposed to resolve even this problem but I dont know where to place it. Code 1: LRESULT CMyClass::OnKeydown(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled) { // m_spWebBrowser is a data member of type IWebBrowser2. // Using CComQIPtr in this way queries m_spWebBrowser // for the IOleInPlaceActiveObject interface which is // then stored in the pIOIPAO variable. // CComQIPtr pIOIPAO(m_spWebBrowser); HRESULT hr = S_FALSE; if (pIOIPAO) { MSG msg; msg.message = uMsg; msg.wParam = wParam; msg.lParam = lParam; hr = pIOIPAO->TranslateAccelerator(&msg); } return hr; Code 2: while (GetMessage(&msg, NULL, 0, 0)) { TranslateMessage(&msg); // Send all keyboard messages to the window of your // application. hwndApp is the window handle of // your application. // if (msg.message >= WM_KEYFIRST && msg.message <= WM_KEYLAST) ::SendMessage(hwndApp, msg.message, msg.wParam, msg.lParam); DispatchMessage(&msg); } Harshapaul

    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