Print Page | Close Window

pane become grayed once hovering on the p

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=3521
Printed Date: 09 November 2025 at 11:42pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: pane become grayed once hovering on the p
Posted By: mailhaim
Subject: pane become grayed once hovering on the p
Date Posted: 17 January 2006 at 4:20am

I have a pane with tree control in it. Once hovering on the pin button, the tree become gray. I tried a solution that is mentioned here putting the styles WS_CLIPCHILDREN and WS_CLIPSIBLINGS to the mainframe, the pane view and the tree control BUT... with no help.

Any other ideas?




Replies:
Posted By: Oleg
Date Posted: 17 January 2006 at 11:33am

Hello,

Try to isolate problem in little sample and attach it here. I sure problem in styles. Check in Spy++ that windows have these clip styles.



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


Posted By: mailhaim
Date Posted: 22 January 2006 at 1:44am

I checked with Spy++ and WS_CLIPCHILDREN and WS_CLIPSIBLINGS exists in the tree control, its parent pane window, the pane's parent pane manager and the main frame.

Anyway, here is a snapshot of the code:

int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) {

...

m_paneManager.InstallDockingPanes(this);

m_paneManager.SetTheme(xtpPaneThemeOffice);

// Create the repository pane and window

CXTPDockingPane* pDockedRepositoryWnd = m_paneManager.CreatePane(IDC_REPOSITORY_PANE, CRect(0, 0, 200, 120), dockLeftOf);

if( pDockedRepositoryWnd != NULL )

{

pDockedRepositoryWnd->SetIconID(1);

pDockedRepositoryWnd->SetTitle("Repository");

}

pDockedRepositoryWnd->Attach(m_repositoryPane.CreatePane(this));

.....

}

m_repositoryPane is CMainFrame class member that derives from

CPaneWnd and holds a member of its own,

m_repositoryTreeCtrl, which derives from CTreeCtrl.

Here is the creation of the pane window:

CWnd* CRepositoryView::OnCreateView()

{

if( m_repositoryTreeCtrl.m_hWnd == NULL )

{

if( m_repositoryTreeCtrl.Create(WS_VISIBLE | WS_CLIPCHILDREN | WS_CLIPSIBLINGS | TVS_HASLINES | TVS_LINESATROOT | VS_HASBUTTONS, CRect(0, 0, 0, 0), this, IDC_REPOSITORY_TREE_CTRL) )

{

m_repositoryTreeCtrl.ModifyStyle(TVS_SINGLEEXPAND, 0); // remove single item expansion

ModifyStyleEx(0, WS_EX_TRANSPARENT);

}

}

EnableToolTips();

return &m_repositoryTreeCtrl;

}

I hope it helps...

 



Posted By: Oleg
Date Posted: 24 January 2006 at 2:03pm

Hi,

guess this is because you attach only in OnCreate:

pDockedRepositoryWnd->Attach(m_repositoryPane.CreatePane(this));

you must attach it in OnDockingPaneNotify handler. please follow our samples.



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


Posted By: mailhaim
Date Posted: 25 January 2006 at 3:48am

Well, it was simpler than that.

The pane class was created with WS_EX_TRANSPARENT (see above) which caused the problems. Once the style was removed, the pane refresh correctly.



Posted By: Oleg
Date Posted: 25 January 2006 at 8:58am
ok :)

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



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