Re: How to create a toolbar button with a menu like Mail button?

From: Igor Tandetnik (itandetnik_at_mvps.org)
Date: 04/27/04

  • Next message: IUnknown: "Re: Implement ShowContextMenu"
    Date: Tue, 27 Apr 2004 13:21:19 -0400
    
    

    "Sérgio Pinheiro" <sergiop.net@terra.com.br> wrote in message
    news:eW0uBnHLEHA.3228@TK2MSFTNGP12.phx.gbl
    > Does anyone knows how to extend a IE toolbar button, like the standard
    > "Mail" and "Edit" buttons?

    See

    http://msdn.microsoft.com/library/en-us/dnwebteam/html/webteam11062001.asp

    A Magic Lantern section.

    > I would like to insert a menu and if possible insert a textbox.

    I don't quite see how you can insert a textbox, considering that none of
    your code actually runs until the button is clicked. Well, I guess if
    you also install a BHO, you can use techniques shown in the article to
    manipulate the toolbar using Win32 API. Make the button wider, position
    an edit control on top of it, subclass the toolbar to handle
    notifications from the edit box.

    -- 
    With best wishes,
        Igor Tandetnik
    "For every complex problem, there is a solution that is simple, neat,
    and wrong." H.L. Mencken
    

  • Next message: IUnknown: "Re: Implement ShowContextMenu"