Older Version
Newer Version
KcDan
May 27, 2006
Some people may desire a different style of bitmap buttons. The kind LB has native when pressed inverts the color and nothing happens when you roll over the button, so it may look a bit ugly in some applications.
The Windows native way of doing this is having a button with the style _BS_BITMAP and the sending the message _BM_SETIMAGE with the handle of the graphic.
Heres a function I made that simplifies this process, all you have to do is supply that with the handle of the button and the handle to the graphic and it will do everything for you.
The Windows native way of doing this is having a button with the style _BS_BITMAP and the sending the message _BM_SETIMAGE with the handle of the graphic.
Heres a function I made that simplifies this process, all you have to do is supply that with the handle of the button and the handle to the graphic and it will do everything for you.