Click to See Complete Forum and Search --> : Help create bitmap as a button (NO MFC)


CyberFreak_f9
May 8th, 2007, 03:26 PM
Please Can any body tell how can i create bitmap as a button in pure win32 sdk (NO MFC)

Zaccheus
May 8th, 2007, 04:00 PM
When you create the button you can specify its style to be owner drawn. Windows sends a special message to the button's parent whenever the button needs to be drawn. That's when you blit the bitmap into the relevant DC.

Does that make sense?

Boris K K
May 9th, 2007, 08:25 AM
BM_SETIMAGE (http://msdn2.microsoft.com/en-us/library/ms673567.aspx)