Print Page | Close Window

Graphics not anti aliased in trees and tab labels

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=15343
Printed Date: 21 June 2025 at 6:49pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Graphics not anti aliased in trees and tab labels
Posted By: lorax1284
Subject: Graphics not anti aliased in trees and tab labels
Date 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



Replies:
Posted By: znakeeye
Date 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/


Posted By: lorax1284
Date Posted: 12 October 2009 at 5:06pm
Hi; I'll try this out: thanks!

-------------
Ryan Germann
Product Manager &
UI Designer



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net