Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++
hi,
i have implemented IDochostUihandler to disable right click in webbrowser control,i was able
to accomplish this task, but now tab and delete key is not working.So please any suggestion
will be very helpful. Thanks in advance
Posted 26-Feb-13 19:34pm
Comments
Sergey Alexandrovich Kryukov at 27-Feb-13 1:38am
   
"Disable right click"? You can disable it only by using a single-key mouse or breaking a mouse. :-)
Do you mean disable a context menu? Why? Did you think about customer's rights?
—SA
Suren Rao at 27-Feb-13 1:45am
   
disabling right click was required for our product, to make it more secure.according to msdn
IDochostUihandler was the solution to do so..

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

I also implemented a webbrowser control myself, but by now this issue hasn't occured to me because I use the webcontrol mostly for displaying information and not really offering user interaction.
 
Anyway, as usual, it appears you have to implement an additional interface called IInputObjects.
 
See here
 
http://go4answers.webhost4life.com/Example/tab-delete-keys-not-working-web-browser-69268.aspx[^]
 
and microsoft documentation
 
http://msdn.microsoft.com/en-us/library/windows/desktop/bb761804(v=vs.85).aspx[^]
 
I'm sorry I can't give an actual coding example but I guess it's something;)
 
(btw. are you using MFC or ATL? Because I used MFC and at least the Delete Key works for me, the Tab Key gets routed buy the MFC UI anyways so there's no way it can possibly affect the webcontrolFrown | :( )
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web03 | 2.8.140709.1 | Last Updated 28 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid