While there are what appear to be several excellent improvements to the MFC button here at code project, I would like to check that I am not missing something obvious. I cant get image/icon MFC buttons to do what I want straight out of the box with Visual Studio's dialog editor.
What I want is to have a button, with a border is fine, but cooler without, that has an image which includes transparency. That is, where the current Windows theme's dialog background colour is assumed as the image's background colour.
The closest I have got is to load the source PNG file into GIMP2.6 and save it out as a Windows ICO format. It looks fine in GIMP. It looks fine in VS2010's editor when imported; i.e. its the same size as saved from GIMP.
But when I set a MFC Button on a dialog to have an "image type" of "icon" in the properties pane and select the ID of my lovely large PNG-now-ICO its suddenly very small.
I thought maybe there is an odd default of 32x32 or 48x48 etc.? But if I set the "autosize" property to true the button just collapses to be even smaller. I can resize the button but the icon will get no larger.
If there is no way of getting large icons onto buttons I would be very grateful for any recommendations of code project button enhancement submissions that are know to work with the dialog editor as custom controls.
I have spent hours searching but have found no answers - apologies if I have missed something simple.
I noticed from a quick play around that the C# dialog editor and button control works straight off from a PNG.