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. Backspace problem in ActiveX embeded in IE

Backspace problem in ActiveX embeded in IE

Scheduled Pinned Locked Moved C / C++ / MFC
comhelptutorial
4 Posts 2 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.
  • M Offline
    M Offline
    Muhammad Azam
    wrote on last edited by
    #1

    Hi Gurus, I have an ActiveX control that has an Edit control inside. I have embeded this control in IE. the problem is when i try to delete some text in Edit control using backspace key the browser takes me to the previous page instead of Erasing the text in Edit control. Does any one know how to deal with this situation please its urgent thanks Muhammad Azam

    K 1 Reply Last reply
    0
    • M Muhammad Azam

      Hi Gurus, I have an ActiveX control that has an Edit control inside. I have embeded this control in IE. the problem is when i try to delete some text in Edit control using backspace key the browser takes me to the previous page instead of Erasing the text in Edit control. Does any one know how to deal with this situation please its urgent thanks Muhammad Azam

      K Offline
      K Offline
      khan
      wrote on last edited by
      #2

      I think it is because the browser gets the events first. Subclass the Edit control, and you are good to go. this is this.

      M 1 Reply Last reply
      0
      • K khan

        I think it is because the browser gets the events first. Subclass the Edit control, and you are good to go. this is this.

        M Offline
        M Offline
        Muhammad Azam
        wrote on last edited by
        #3

        Khan, could you please ellaborate your point. I am not able to get it. My ActiveX control contains other controls along with the Edit control. AZam

        K 1 Reply Last reply
        0
        • M Muhammad Azam

          Khan, could you please ellaborate your point. I am not able to get it. My ActiveX control contains other controls along with the Edit control. AZam

          K Offline
          K Offline
          khan
          wrote on last edited by
          #4

          I meant that you could subclass it. Which basically means implementing the WndProc for the control. The actual code would depend on whether you are using MFC or not. In MFC, it is really easy, as you could just derive a class from CEdit. Then in that class, you can control everything the edit control does, like, handling backspace, Esc etc. In WTL, it is just a little different. Search this site for the many edit controls: http://www.codeproject.com/editctrl/[^] Here, you will find many implementations. Choose the best one for your purpose. this is this.

          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