Print Page | Close Window

Icon sizes in MDI tabs

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=8549
Printed Date: 14 November 2025 at 1:42am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Icon sizes in MDI tabs
Posted By: dennisV
Subject: Icon sizes in MDI tabs
Date Posted: 27 October 2007 at 9:04am
Hello all,

Is it possible to have icon sizes other than 16x16 in MDI tabs?

Thanks in advance!

    Dennis


-------------
// W7 64 Ultimate SP1
// VS 2008
// CodeJock 16.2.3 (MFC)



Replies:
Posted By: Oleg
Date Posted: 29 October 2007 at 2:14am
Him
 
call m_wndTabClient.GetPaintManager()->m_szIcon = CSize(32, 32);


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: dennisV
Date Posted: 29 October 2007 at 6:07am
thank you - that did the trick! 

-------------
// W7 64 Ultimate SP1
// VS 2008
// CodeJock 16.2.3 (MFC)


Posted By: dennisV
Date Posted: 29 October 2007 at 7:00am
actually, I spoke too soon  it looks like its stretching the icons - I've tried both 24x24 and 32x32 and the buttons become large and the icons become larger as well, but they're not smooth - it's like it actually tries to resize them when drawing, although tracing into CXTPTabClientWnd::CWorkspace::DrawIcon() I don't see anything weird... maybe I'm missing some vital call somewhere?

-------------
// W7 64 Ultimate SP1
// VS 2008
// CodeJock 16.2.3 (MFC)


Posted By: Oleg
Date Posted: 29 October 2007 at 8:09am
Hi,
 
See HICON CXTPTabClientWnd::GetItemIcon(const CXTPTabManagerItem* pItem) const
method. by default it get GCLP_HICONSM and then GCLP_HICON. So if you don't like it, just override this method and get icon you need.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: dennisV
Date Posted: 29 October 2007 at 8:11am
that makes sense - thanks, I'll do that!

-------------
// W7 64 Ultimate SP1
// VS 2008
// CodeJock 16.2.3 (MFC)



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