Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Graphics not anti aliased in trees and tab labels
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Graphics not anti aliased in trees and tab labels

 Post Reply Post Reply
Author
Message
lorax1284 View Drop Down
Groupie
Groupie
Avatar

Joined: 10 September 2005
Location: Canada
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote lorax1284 Quote  Post ReplyReply Direct Link To This Post Topic: Graphics not anti aliased in trees and tab labels
    Posted: 11 October 2009 at 12:12pm
Hello; I asked this question previously, possibly 3 years ago, but it seems my original question is no longer present (posts prior to Sept 15 2008 seem to not be online).

I am using 32 bbp BMP files for node icons in trees and on Tab Labels. 32 bit .ICO files on buttons.

The .ICO files are anti-aliasing fine.

Until about a month ago, we were using Visual Studio 2003 (.NET) and had resolved this problem with sample code provided graciously by Oleg... it was something to do with the way we were adding the images to the image list.... but we have moved to Visual Studio 2008 and now when we build our product, rough edges appear around tree node icons and tab-label icons.

We use some of the features of the "IE6_lib" and perhaps there is an incompatibility there?

If anyone can describe the change required to re-enable proper antialiasing of 32 bpp BMP files, it would be greatly appreciated. Here's a screen shot of what it looks like:




Ryan Germann
Product Manager &
UI Designer
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 12 October 2009 at 3:39am
I had a similar issue. 2003 and 2008 handle manifests differently. What you need is the following define in your stdafx.h (also make sure to remove any "manifest"-defines in resource.h):
 
#ifdef _UNICODE
#if defined _M_IX86
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
#elif defined _M_IA64
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"")
#elif defined _M_X64
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"")
#else
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
#endif
#endif
 
#include <XTToolkitPro.h>
PokerMemento - http://www.pokermemento.com/
Back to Top
lorax1284 View Drop Down
Groupie
Groupie
Avatar

Joined: 10 September 2005
Location: Canada
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote lorax1284 Quote  Post ReplyReply Direct Link To This Post Posted: 12 October 2009 at 5:06pm
Hi; I'll try this out: thanks!
Ryan Germann
Product Manager &
UI Designer
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.031 seconds.