Title: Re: [msvc] XP Visual Styles - How To Create Controls That Use Them?

HI

The new XP style items are included in the "new" controls v6 that XP uses.
To tell XP that your program can use these controls in new programs (created
with VC.NET) they have an extra file in the resources called a manifest
file.

For your old VC6 program you can place a manifest file in to the same folded
as the program and the styles should work ( I think ).  Just call the
manifest file:

myprogram.exe.manifest

and that should be it.

Regards
Max


----- Original Message -----
From: "Jason Teagle" <[EMAIL PROTECTED]>
To: "WinDev" <[EMAIL PROTECTED]>; "MSVC At BeginThread"
<[EMAIL PROTECTED]>
Sent: Friday, April 25, 2003 10:14 AM
Subject: [msvc] XP Visual Styles - How To Create Controls That Use Them?


> I have just decided to use a different Visual Style on my XP machine
(bored
> with the existing ones), and it uses water-droplet-look buttons (a bit
like
> the Mac?). While OS message boxes use these styles, I notice that my code
> written in VC 6 does not, it is the old default grey.
>
> Why is this? They're created with the bog standard button on a dialogue
> resource... is something extra required to make use of Visual Styles in
our
> code? Does only VS.NET create code that uses them?
>
> It's not that I'm specifically looking to use them since previous OSs
won't
> have them - I'm just wondering why a bog-standard button doesn't use the
> style when run on XP?
>
> --
> Jason Teagle
> [EMAIL PROTECTED]
>
>

Reply via email to