How to correctly draw a themed radio button? (my radio button is always centered)
Hi,
I would like to draw a radio button using Visual Styles/Themes. I manage to
draw a radio button using DrawThemeBackground, but the radio button is
always centered, not left-aligned.
Here is my code:
hTheme := OpenThemeData(hWindow, 'BUTTON');
GetClientRect(hWindow, rClientRect);
DrawThemeBackground(hTheme, hDC, BP_RADIOBUTTON, RBS_CHECKEDNORMAL,
rClientRect, nil);
How do i make the radio button left-aligned?
Thank you,
- Gerben
date: Tue, 19 Aug 2008 09:49:01 +0200
author: Gerben Abbink