MikeB01

I have a BHO that works fine w/ IE6. I installed IE7 and everything seems to work except I can no longer resize the BHO.

My BHO displays horizontally across the bottom of the page. In IE6 I could make it larger or smaller (vertically) by dragging the splitter. When I do this in IE7, I can drag the splitter but when I let go it pops right back to where it was.

Anyone else have this problem

Thx.



Re: Internet Explorer Extension Development IE7 - Cant Change Size of BHO

MikeB01

I found a fix in the comments section of the Pavel Zolnikov Code Project article.
http://www.codeproject.com/csharp/dotnetbandobjects.asp df=100&forumid=3788&fr=101
(IE7 Topic)


This fixed the problem.

I found that if I commented out the dbi.dwModeFlags line in the BandObject.cs file, it starts working normally.

I'm thinking that the author may have confused some of the dwMask and dwModeFlags values and applied them incorrectly to the dwModeFlags property.

Essentially I changed it from:
//dbi.dwModeFlags = DBIM.TITLE | DBIM.ACTUAL | DBIM.MAXSIZE | DBIM.MINSIZE | DBIM.INTEGRAL;
to:
dbi.dwModeFlags = DBIM.NORMAL | DBIM.VARIABLEHEIGHT;

and the sample started working normally in IE7 B3

I also changed the DBIM enums to:
[Flags]
public enum DBIM : uint
{
NORMAL =0x0000,
MINSIZE =0x0001,
MAXSIZE =0x0002,
INTEGRAL =0x0004,
VARIABLEHEIGHT =0x0008,
TITLE =0x0010,
MODEFLAGS =0x0020,
BKCOLOR =0x0040,
USECHEVRON =0x0080,
BREAK =0x0100,
ADDTOFRONT =0x0200,
TOPALIGN =0x0400
}

-Hans