EDN Admin
Well-known member
Hi All!
First, Im sorry if my English skill is not good, I hope you see!
Im writing a small program with native C++. When I created a radio button as child of main window (BUTTON class with style BS_AUTORADIOBUTTON), it shows normal. But when I created it as child of a group box, its background color become black.
In code, I used theme for common control v6:
#pragma comment(linker,"/manifestdependency:"type=win32 name=Microsoft.Windows.Common-Controls version=6.0.0.0 processorArchitecture=* publicKeyToken=6595b64144ccf1df language=*"")
A small thing I have tried:
+ Windows 7: In two cases, they show normal (correctly)
+ Windows XP:
- If I used common control v6: it has problem
- If I used old style: it shows normal
<img src="http://img855.imageshack.us/img855/9384/windows7.jpg" alt="windows 7 <img src="http://img200.imageshack.us/img200/1274/windowsxp6.png" alt="windows xp new style
<img src="http://img843.imageshack.us/img843/7323/windowsxpold.png" alt="windows xp old style
<br/>
So, how to fix it so it can show correctly on windows xp with common control v6 ? Could you please help me ?
Ive also attached code here:
https://ewcm8g.bay.livefilestore.com/y1p7JufVkoqu-LfCJjyanqK1R6lWTu9FgoIQghOw1tyiYk4IrduVg3SEHAPIRXcCeD1bmpyLAdlmvwjYEI1WISOwSczXbUEUIDj/Test1.zip?download&psid=1
Thanks in advance!
<br/>
<br/>
View the full article
First, Im sorry if my English skill is not good, I hope you see!
Im writing a small program with native C++. When I created a radio button as child of main window (BUTTON class with style BS_AUTORADIOBUTTON), it shows normal. But when I created it as child of a group box, its background color become black.
In code, I used theme for common control v6:
#pragma comment(linker,"/manifestdependency:"type=win32 name=Microsoft.Windows.Common-Controls version=6.0.0.0 processorArchitecture=* publicKeyToken=6595b64144ccf1df language=*"")
A small thing I have tried:
+ Windows 7: In two cases, they show normal (correctly)
+ Windows XP:
- If I used common control v6: it has problem
- If I used old style: it shows normal
<img src="http://img855.imageshack.us/img855/9384/windows7.jpg" alt="windows 7 <img src="http://img200.imageshack.us/img200/1274/windowsxp6.png" alt="windows xp new style
<img src="http://img843.imageshack.us/img843/7323/windowsxpold.png" alt="windows xp old style
<br/>
So, how to fix it so it can show correctly on windows xp with common control v6 ? Could you please help me ?
Ive also attached code here:
https://ewcm8g.bay.livefilestore.com/y1p7JufVkoqu-LfCJjyanqK1R6lWTu9FgoIQghOw1tyiYk4IrduVg3SEHAPIRXcCeD1bmpyLAdlmvwjYEI1WISOwSczXbUEUIDj/Test1.zip?download&psid=1
Thanks in advance!
<br/>
<br/>
View the full article