Oh yes, I could use the functions:srvet_claudio wrote:PD: A suggestion: should be used to draw the button the api functions that draw with the style of Windows active theme, otherwise the button is flat and the other controls are drawn by superimposing layers of images that recreate the active theme. This is the way that Windows draws controls with active theme.
OpenThemeData()
DrawThemeBackground()
DrawThemeText()
CloseThemeData()
But in this way I can not draw rounded/circular buttons.
It seems to me that the simplest solution of the colored buttons will be adding in HMG two properties for standard buttons:
TEXTCOLOR
BACKCOLOR
and processing WM_NOTIFY/NM_CUSTOMDRAW message.