The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: Wilbaius on May 15, 2006, 12:51:47 PM

Title: Toolbar Buttons
Post by: Wilbaius on May 15, 2006, 12:51:47 PM
I retreived a brief tutorial on toolbar creation from the collection of Masm tuts, and I implemented my own toolbar using CreateToolbarEx; the problem is that the buttons on it have a border around them that makes them appear permanently 'raised' (as opposed to contemporary tb buttons that are 'flat' and are only raised when the user positions the mouse pointer over them). How do I get rid of this border, so that the buttons behave as they normally do on contemporary toolbars? :(
Title: Re: Toolbar Buttons
Post by: hutch-- on May 15, 2006, 01:27:36 PM
This is how I create a flat toolbar.


        invoke CreateWindowEx,0,
                              ADDR tbClass,
                              ADDR szDisplayName,
                              WS_CHILD or WS_VISIBLE or TBSTYLE_FLAT,
                              0,0,500,40,
                              hWin,NULL,
                              hInstance,NULL


Just check if you can use the same style with CreateToolbarEx().