Swastik Shah

Swastik Shah

  • NA
  • 1
  • 1.9k

Create bitmap button dynamically

Oct 8 2011 8:43 PM
I used VS 2008 to create dialogbox that allows me to use CBitmapButton for creating button (with image).   Dialog editor allowed me to do so.  However, all buttons are created as static.

I woder how can I create and add these button dynamically (i.e based on an event that would decide which image will be loaded in the button on-fly)?

Thanks.