Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > A strange problem with IE and the browser helper object

Reply
Thread Tools

A strange problem with IE and the browser helper object

 
 
Andrew Mayo
Guest
Posts: n/a
 
      12-18-2003
(note: reason for posting here; browser helper object is written in
C++; C++ developers tend to know the intricacies of message handling;
this looks like a Windows messaging issue)

Microsoft very kindly make available a DLL (the browser helper DLL)
which allows you to trap and disable the context menu (right mouse
click) and various 'built-in' browser accelerators (such as ctrl+P
which brings up the print dialogue, and F5, which will refresh the
current page) when using the browser.

This is great, and I am duly grateful. However, using the helper DLL
does have a strange side-effect which is annoying our users, and if
anyone has an explanation, I'd be grateful.

What happens is this. If you have any contenteditable fields in your
page (and we have a *lot* of them

e.g

<span contenteditable>some editable stuff</span>

and you host this page inside Visual Basic using the standard browser
control

then without the browser helper DLL attached to the page you can press
the left mouse button and 'sweep' over the text to highlight it. This
is of course a standard piece of Windows behaviour.

Now attach the helper DLL. Now, you can no longer sweep across and
highlight text. Instead, nothing happens.

However, the keyboard still allows this e.g you can press HOME and
CTRL+END to highlight text.

I have tried running up Spy++ to see if somehow there's something
weird going on with message handling but can't pin it down. The DLL
source code doesn't seem to be screwing around with messages it didn't
ought to be handling.

Can anyone suggest a way of pinning down this rather strange problem?.

I strongly suspect it is tied in with message handling/ accelerators
or something weird in this area. I can't see obvious message eating
but how Windows internally handles this I am not sure. I would assume
that the destination hWnd sees a WM_LBUTTONDOWN and then captures the
mouse and monitor WM_MOUSEMOVE messages to handle highlighting, but as
this behaviour is intrinsic to the edit control, I don't see it
documented anywhere. (of course, I assume that contenteditable text is
implemented via an edit control - I have no idea how MS are doing it
inside the browser).
 
Reply With Quote
 
 
 
 
Gene Wirchenko
Guest
Posts: n/a
 
      12-18-2003
On 18 Dec 2003 04:23:44 -0800, (Andrew Mayo) wrote:

>(note: reason for posting here; browser helper object is written in
>C++; C++ developers tend to know the intricacies of message handling;
>this looks like a Windows messaging issue)


Then post to a Windows group.

[snip]

Sincerely,

Gene Wirchenko

 
Reply With Quote
 
 
 
 
Alf P. Steinbach
Guest
Posts: n/a
 
      12-18-2003
On 18 Dec 2003 04:23:44 -0800, (Andrew Mayo) wrote:

>(note: reason for posting here; browser helper object is written in
>C++; C++ developers tend to know the intricacies of message handling;
>this looks like a Windows messaging issue)


The question is off-topic in [comp.lang.c++].

Try [comp.os.ms-windows.programmer.win32] instead. It's chock full of
people programming Windows in C++. And other languages.


 
Reply With Quote
 
Andrew Mayo
Guest
Posts: n/a
 
      12-19-2003
sorry. That would have been a better idea; was looking for an
MS-specific C++ group and failed to find it, hence post.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What's the purpose of the helper cache and is there a way to just turn off helper cache-ing? kevin Ruby 1 07-21-2006 03:42 AM
Object/Embed Helper Control? andchoi@gmail.com ASP .Net 0 11-21-2005 03:31 PM
Object creation - Do we really need to create a parent for a derieved object - can't the base object just point to an already created base object jon wayne C++ 9 09-22-2005 02:06 AM
Browser Helper Objects JohnFol ASP .Net 0 10-08-2004 02:29 PM
Browser Helper Objects (BHODemon) NonDisputandum.com Computer Security 0 08-27-2004 07:51 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57