![]() |
Graphics not anti aliased in trees and tab labels |
Post Reply ![]() |
Author | |
lorax1284 ![]() Groupie ![]() ![]() Joined: 10 September 2005 Location: Canada Status: Offline Points: 14 |
![]() ![]() ![]() ![]() ![]() 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 |
|
![]() |
|
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() |
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/
|
|
![]() |
|
lorax1284 ![]() Groupie ![]() ![]() Joined: 10 September 2005 Location: Canada Status: Offline Points: 14 |
![]() ![]() ![]() ![]() ![]() |
Hi; I'll try this out: thanks!
|
|
Ryan Germann
Product Manager & UI Designer |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |