Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Rectangular Tab Icons
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Rectangular Tab Icons

 Post Reply Post Reply
Author
Message
GARC View Drop Down
Newbie
Newbie


Joined: 07 October 2011
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote GARC Quote  Post ReplyReply Direct Link To This Post Topic: Rectangular Tab Icons
    Posted: 29 May 2013 at 10:16am
Hello.

I am trying to set rectangular tab icons for my docking panes. I have created an image list of 5 images of 72x36 pixels each. This is the piece of code I am using to assign these images to the tab icons inside my OnCreate function:

m_PaneManager.GetPaintManager()->GetTabPaintManager()->m_szIcon = CSize(72, 36);
CXTPImageManager* icons_manager = m_PaneManager.GetImageManager();
icons_manager->SetIcons(m_tabs_image_list, nIDIcons, _countof(nIDIcons), CSize(72, 36), xtpImageNormal);


Once executed, I notice that the tabs are higher than desired as shown in the following picture:


As you can see, despite the images are shown correctly, and although the size of the icons has been set to CSize(72,36) as shown in the code, it seems to be forced to show a square 72x72 icon size, producing those undesireble margins up and down each image.
How can I get rid of those margins and maintain the height of the tabs in 36 pixels?

Thanks in advance.
Alex.

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.142 seconds.