none
How to control the position of BHO - ITBar7Layout

    Question

  • Hi,

    I am currently having a problem to control the position of toolbar with IE7.

    If I have two toolbars installed with IE7, I will have two toolbars share the same line instead of making second toolbar stay on the second line.

    I've try to delete KEY - ITBar7Layout whenever there is a toolbar installed or removed.

    However, it doesn't slove the toolbar position problem.

    Is there any solution for it?

    Thursday, November 09, 2006 8:47 PM

All replies

  • Hi:

    My guess is that you may have GetBandInfo method implemented in your code.
    Type signature of GetBandInfo is like this:
    STDMETHODIMP GetBandInfo(DWORD dwBandID, DWORD dwViewMode, DESKBANDINFO* pdbi)

    Just add following code snippet to this method & problem will be solved.

    if (pdbi->dwMask & DBIM_MODEFLAGS)
    {
                    pdbi->dwModeFlags = DBIMF_NORMAL | DBIMF_USECHEVRON | DBIMF_BREAK;
    }

    DBIMF_BREAK would cause toolbar to appear on next line as you desire.

    As far as i know there does not exist any information available publicly on IE7ToolbarLayout structure. I have also struggled a lot to develope some set of methods to alter
    IE7ToolbarLayout but could not complete.

    Wednesday, January 16, 2008 5:13 AM