Seena K

Can anybody give me a sample code for using visual styles in VC++ 6. I wanted to display texts using XP's font and style. Urgent.

Re: Visual C++ General Using Visual Styles in VC++ 6

Ted.

Just add a manifest to your resource of type 24 and id of 1

see: http://msdn2.microsoft.com/en-us/library/ms997646.aspx

If you're not familiar with using a resource editor, here's some code to generate the manifest in your EXE.

http://www.codeproject.com/cpp/AddXpStyle.asp





Re: Visual C++ General Using Visual Styles in VC++ 6

Seena K

I wanted to display texts and drawings(lines) using XP's style in an activex control. I don't have using any controls in it. Just an image with few lines and a caption for that. Please hepl me.



Re: Visual C++ General Using Visual Styles in VC++ 6

Ted.

what exactly do you want to look like XP The caption of the window, for example text and drawing should not be affected by or related to XP visual styles. Can you give an example of how they're different



Re: Visual C++ General Using Visual Styles in VC++ 6

Seena K

I wanted to display some caption text using the font of XP's current theme. One more thing I needed is, to draw lines using the color of current theme.



Re: Visual C++ General Using Visual Styles in VC++ 6

Ted.

I still recommend the correct manifest in your control (with id = 2 ) and build it isolation aware.

and then you may want to look at GetThemeFont

http://msdn2.microsoft.com/en-us/library/ms649934.aspx

and also GetThemeColor

http://msdn2.microsoft.com/en-us/library/ms649930.aspx





Re: Visual C++ General Using Visual Styles in VC++ 6

Damien Watkins - MSFT

Hello

Re: Using Visual Styles in VC++ 6

Such questions (on VC++ 6.0) are outside the scope of this forum - for the scope of the VC General forum please look at: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=19445&SiteID=1

For such issues please use the newsgroups at http://msdn.microsoft.com/newsgroups.

OTP

Thanks

Damien