DirectSkin problem on Tab,Calendar & Slider Controls in VB6.0
Wednesday, March 10, 2010 by bsil | Discussion: WindowBlinds
Hi.
I am trying to use DirectSkin for VB 6.0 application.
Skinning works for all controls except TabStrip,SSTab control & Smart Tab Control ( a Third Party control).
As you can see the color of the tab changed but the effect did not come.
However it worls for MS FlexGrid control which is again a third party control

It does not work for MS Calendar control 8.0 & Slider controls.
In case of calendar control, the color of the control changed but effect did not come.
In case of slider control, the style of the slider changed but the background color remained the same.
Can you please let me know if this is a drawback or there is another way to apply skin on these controls ?
Regards,
Reply #2 Tuesday, March 16, 2010 7:46 AM
As an additional note, you would need to call SetVersionExpected (213) before DoWindow to enhance the support for VB controls like that progressbar.
Please login to comment and/or vote for this skin.
Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:
- Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
- Access to a great community, with a massive database of many, many areas of interest.
- Access to contests & subscription offers like exclusive emails.
- It's simple, and FREE!







Reply #1 Wednesday, March 10, 2010 3:37 PM
Some controls look like standard controls but are different under the skin. Those tab controls are unfortunately like that. I know the SSTab control will never skin. The best you would get would be for it to pickup the skin colours in which case ForceSystemColours might be required.
Generally speaking any third party controls made since Windows XP came out are likely to have the ability to be skinned. You may need to add a themeaware manifest to your application and call UxThemeEmulation (TRUE) before DoWindow to make them skin.
Regarding the bad background colour, ForceSystemColours (TRUE) before DoWindow may help there.
I have a feeling we added in support for the VB progressbar control recently, though I may be wrong.
Typically DirectSkin support is handled directly via [email protected] rather than the forums as it is easier to help one on one especially when customers may be working with software they would rather keep confidential.