News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Toolbar Buttons

Started by Wilbaius, May 15, 2006, 12:51:47 PM

Previous topic - Next topic

Wilbaius

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? :(

hutch--

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().
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php