![]() |
Icon sizes in MDI tabs |
Post Reply
|
| Author | |
dennisV
Senior Member
Joined: 07 October 2004 Location: Australia Status: Offline Points: 242 |
Post Options
Thanks(0)
Quote Reply
Topic: Icon sizes in MDI tabsPosted: 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) |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 29 October 2007 at 2:14am |
|
Him
call m_wndTabClient.GetPaintManager()->m_szIcon = CSize(32, 32);
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
dennisV
Senior Member
Joined: 07 October 2004 Location: Australia Status: Offline Points: 242 |
Post Options
Thanks(0)
Quote Reply
Posted: 29 October 2007 at 6:07am |
|
thank you - that did the trick!
|
|
|
// W7 64 Ultimate SP1
// VS 2008 // CodeJock 16.2.3 (MFC) |
|
![]() |
|
dennisV
Senior Member
Joined: 07 October 2004 Location: Australia Status: Offline Points: 242 |
Post Options
Thanks(0)
Quote Reply
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) |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
dennisV
Senior Member
Joined: 07 October 2004 Location: Australia Status: Offline Points: 242 |
Post Options
Thanks(0)
Quote Reply
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) |
|
![]() |
|
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 |