Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Docking Panes’ tabs size
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Docking Panes’ tabs size

 Post Reply Post Reply
Author
Message Reverse Sort Order
VAGB View Drop Down
Newbie
Newbie


Joined: 23 November 2004
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote VAGB Quote  Post ReplyReply Direct Link To This Post Topic: Docking Panes’ tabs size
    Posted: 21 July 2005 at 10:35am

It works fine!

Thank you very much Oleg.

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 21 July 2005 at 8:01am

Hi,

try

m_paneManager.GetPaintManager()->GetTabPaintManager()->m_szIcon = CSize(36, 36);

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
VAGB View Drop Down
Newbie
Newbie


Joined: 23 November 2004
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote VAGB Quote  Post ReplyReply Direct Link To This Post Posted: 20 July 2005 at 4:21am

Hi.

I am trying to change the icons of a group of 5 docking panes with those of an Image List with a size of 36 square pixels each. The problem I am involved is that when those docking panes are showed the icons inside are small and not 36 pixels height. It seems that the tabs of the docking panes are always the same size and donīt rescale according to the icons size. As I donīt understand too much the structure and architecture of docking panes I have not found any way to make those tabs and icons be drawn properly. The lines of code where I implement the icons are these:

// Creation of docking panes.

CXTPDockingPane* pwndPane1 = m_paneManager.CreatePane(IDR_PANE_1, CRect(0, 0, 200, 120), xtpPaneDockLeft);

CXTPDockingPane* pwndPane2 = m_paneManager.CreatePane(IDR_PANE_2, CRect(0, 0, 200, 120), xtpPaneDockBottom, pwndPane1);

CXTPDockingPane* pwndPane3 = m_paneManager.CreatePane(IDR_PANE_3, CRect(200, 0, 200, 120), xtpPaneDockBottom, pwndPane2);

CXTPDockingPane* pwndPane4 = m_paneManager.CreatePane(IDR_PANE_4, CRect(200, 0, 200, 120), xtpPaneDockBottom, pwndPane3);

CXTPDockingPane* pwndPane5 = m_paneManager.CreatePane(IDR_PANE_5, CRect(200, 0, 200, 120), xtpPaneDockBottom, pwndPane4);

UINT nIDIcons[] = {IDR_PANE_1, IDR_PANE_2, IDR_PANE_3, IDR_PANE_4, IDR_PANE_5};

if (!m_image_list.Create(36, 36, /*ILC_MASK |*/ ILC_COLOR24, 0, 0))

{

TRACE0("Failed creating image list.\n");

return -1;

}//if

CBitmap bitmap;

bitmap.LoadBitmap(IDB_TAB_ICONS);

m_image_list.Add(&bitmap, RGB(0x00, 0x80, 0x80));

CXTPImageManager* icons_manager = m_paneManager.GetImageManager();

icons_manager->SetIcons(m_image_list, nIDIcons, _countof(nIDIcons), CSize(36, 36), xtpImageNormal);

I donīt know if my code is wrong or something is missed. In fact the icons are found and displayed but are rescaled to fit the tabs instead of being those tabs to be rescaled to fit the icons.

Can anyone help me or give any suggestion?

Thanks in advance.

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