Is there a way to have a button with text and graphic, with the graphic on the right side of the text, without having to owner-draw the button?
I want to just sent BM_SETIMAGE and whatever else would be needed so the graphic is to the right of the text.
Also, I noticed the image is so tight against the text that it doesn't look good. Is there a way to adjust the margin without having to use a blank space in the text?
There are
BS_LEFTTEXTandBS_RIGHTBUTTONstyles available, but the documentation says they only apply to CheckBoxes and RadioButtons:For a standard push button, there does not appear to be a way to control the position of the image other than through owner-drawing.
Use
BCM_SETTEXTMARGIN/Button_SetTextMargin():