Context Menu for Embedded WebBRowser

N

Neil D

Hi

I'm using WM5.0, CF2.0 and have an embedded webbrowser control on a form.
The problem is that the fullscreen menu item from the context menu doesn't
work. Is there a way to capture the context menu events and implement this
or alternatively a way to remove the Full Screen entry from the menu. Full
Screen support would be prefereable.

On the subject of the embedded webbrowser is it also possible to mimic the
full PIE functionality for the View and Zoom menus?

Cheers

Neil
 
P

Paul G. Tobey [eMVP]

Full screen support has to be implemented at the application level. I have
not done much with the IE on PPC, but it seems like it might simply be
sending a message to its parent window. How about using Remote Spy++ and
seeing what messages are sent when you choose that menu item?

Paul T.
 
N

Neil D

Hi Paul

I've looked into remote spy but can't seem to pick-up any messages when I
click on the context menu. I know I need to control the full-screen at the
application level and can do that, but once it's in full screen then the
context menu is the standard way to return to normal but if I don't get to
see the event then I can't do anything about it. An alternative (not ideal)
would be to remove the full screen functionality but I don;t seem to have
control over the context menu either to modify it or remove it. Without a
soultion to this it makes the application look a little unprofessional to
have a context menu item that doesn't actually do anything.

I find it hard to believe that this issue hasn;t been discovered by
Microsoft so surely there is a solution.

Cheers

Neil
 
P

Paul G. Tobey [eMVP]

I don't remember how the WebBrowser control works. Doesn't it have some
means of notifying the application of various things? I'm not a Pocket PC
programmer, so I just embed the Internet Explorer ActiveX control in my
code, when I need a browser, and it tells me all kinds of things about
what's going on, most of them useless. The WebBrowser wrapping was designed
as a much simpler Web browser interface, so maybe it doesn't tell you that.
I can't think of any way, other than what you've already tried (you've tried
this with PIE, right? Making sure that you're trapping messages for all
windows up the stack from the immediate parent of the browser window?), to
figure out what else it might be doing; you don't get WebBrowser source
code...

Paul T.
 

Rui

Joined
Apr 16, 2007
Messages
2
Reaction score
0
Any solution

Neil D said:
Hi

I'm using WM5.0, CF2.0 and have an embedded webbrowser control on a form.
The problem is that the fullscreen menu item from the context menu doesn't
work. Is there a way to capture the context menu events and implement this
or alternatively a way to remove the Full Screen entry from the menu. Full
Screen support would be prefereable.

On the subject of the embedded webbrowser is it also possible to mimic the
full PIE functionality for the View and Zoom menus?

Cheers

Neil

Hi,
i'm developing a webbrowser(using a web browser control) with visual studio 2005 c#, and i have the same problem.
did you find any solutions for the problems?

thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top