Hi Rob,
Im not sure you got my problem.
the m_bChecked member is used by the bho to act on certain events or
not. My problem is the appearance of the button. When it's clicked the
first time under IE6 i change it to looked checked, with the following
code
::SendMessage(hWndToolBar, TB_CHECKBUTTON, nIDCommand,
MAKELPARAM(1,0));
The problem manifest its self with IE6 when focus on the button
vanished (by clicking somewhere a link the html document or outside
the browser).
However my code works as intended under IE7.
Please note, i dont have a toolbar or a band. Just the toolbar button
and the bho.
Tom
> Hi Justone,
> Try the IE7 Extension Development Forumhttp://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=924&SiteID=1
[quoted text clipped - 40 lines]
>
> > -Tom
Rob ^_^ - 07 Sep 2007 07:59 GMT
Hi Tom,
I don't have access to IE6 at the moment, but it sounds like a redraw
message is being sent to the rebar when it is clicked or focus is lost,
whereas in IE7 the Command bar is separate from the rebar. For IE6 I would
guess that you have to change the Icon value in the registry.
You will find some threads in the IE7 Extension Development forum on
altering the appearance of Button extensions. Search for the keywords
rebar... I posted the headers for it. Its a bit beyond the scope of this NG.
Regards.
> Hi Rob,
>
[quoted text clipped - 66 lines]
>>
>> > -Tom
justonemail@gmail.com - 07 Sep 2007 20:28 GMT
Thanks Rob,
Found your post on the rebar. I'll take a look at it next. In the
meantime, is there a way i can catch the redraw event on by button?
best
Tom
> Hi Tom,
>
[quoted text clipped - 80 lines]
>
> >> > -Tom
Rob ^_^ - 07 Sep 2007 21:14 GMT
Hi Tom,
The tool of choice is Spy++ which you will find in the Tools folder of
Visual Studio. You will need a Callback to capture the windows messages that
are redrawing your button. There are some other posts on the forum about
command bar buttons that may be helpful.
Regards.
> Thanks Rob,
>
[quoted text clipped - 95 lines]
>>
>> >> > -Tom