DrawThemeBackground
-
Hey all, I am busy updating my CFileEditCtrl class[^] to support XP themes. As part of that update I want the browse button to be drawn the same as a combo box dropdown button, except without the arrow. Using
DrawThemeBackground
automatically draws the arrowHTHEME hTheme = OpenThemeData(*this, L"COMBOBOX");
LRESULT ret = DrawThemeBackground(hTheme, dc, CP_DROPDOWNBUTTON, CBXS_NORMAL, CRect(10, 10, 27, 27), NULL);Is there any option that will draw the themed button background without the arrow?
You may be right
I may be crazy
-- Billy Joel --Within you lies the power for good, use it!!!
-
Hey all, I am busy updating my CFileEditCtrl class[^] to support XP themes. As part of that update I want the browse button to be drawn the same as a combo box dropdown button, except without the arrow. Using
DrawThemeBackground
automatically draws the arrowHTHEME hTheme = OpenThemeData(*this, L"COMBOBOX");
LRESULT ret = DrawThemeBackground(hTheme, dc, CP_DROPDOWNBUTTON, CBXS_NORMAL, CRect(10, 10, 27, 27), NULL);Is there any option that will draw the themed button background without the arrow?
You may be right
I may be crazy
-- Billy Joel --Within you lies the power for good, use it!!!
Hi! There are no any option to do this. Try
HTHEME hTheme = OpenThemeData(*this, L"Button");
instead of combobox, or parse manually theme info from .theme file.:sigh: Rgds. Tarmo. -
Hi! There are no any option to do this. Try
HTHEME hTheme = OpenThemeData(*this, L"Button");
instead of combobox, or parse manually theme info from .theme file.:sigh: Rgds. Tarmo.Unfortunately the standard push button and the combobox buttons are different. In the standard blue theme the push button is white while the combo box button is blue. How does one draw custom controls using themes? Surely there must be an API provided for it if the custom control varies in appearance from the windows standard controls. Pre fisher-price was so much easier:sigh:
You may be right
I may be crazy
-- Billy Joel --Within you lies the power for good, use it!!!