Hi guys,
i kind of haven't got the motivation to search this one out myself, so i will just ask :grin: (anyway, i don't think the whole answer is in just one place).

What styles should i give a button to achieve the toolbar button look? Note that the buttons are NOT on a toolbar, they are stand-alone buttons on a window. I just like the toolbar button look, where it just appears as an icon, then the border gets raised etc. as you hover over it.

Also, what processing needs to be done to change the look of the button as you hover over it (i.e. what windoze messages get sent and need to be processed, etc.)?

Posted on 2002-05-26 23:29:03 by sluggy

what a lazy top 500+ poster :grin:

is the interesting one, but keep in mind that this
features depends on the version of comctl32.dll.
As far as I remember IE4/Win95C was the start of flat toolbar buttons.

Bye Miracle
Posted on 2002-05-27 04:11:01 by miracle
TBSTYLE_FLAT only works if used with a toolbar. I noticed your post specifies not toolbar. I have the same question. Did you ever get this thing working without having to swap bitmaps for mouseover?

best regards,

Posted on 2003-06-25 09:48:04 by czDrillard

outside the toolbar I don't know of any easy way.
Just recognize mouse in and out by capturing mouse moves
and blit another bitmap and draw frames.

BTW. Reading the threads carefully wouldn't lead to wrong answers

Bye Miracle
Posted on 2003-06-25 10:28:01 by miracle
I think you need XP.
You can check for BCN_HOTITEMCHANGE but I don't know how to change the style
Posted on 2003-06-25 10:34:08 by greenant
I found this link on the psdk

This prog need win xp. I don't have xp so I don't know if it works
Posted on 2003-06-25 10:48:45 by greenant
Never tried a static window with a single button toolbar child? by the way, I don't even know if it will work... just an idea... :confused:
Posted on 2003-06-25 15:20:40 by LuHa