![]() |
pane become grayed once hovering on the p |
Post Reply
|
| Author | |
mailhaim
Newbie
Joined: 28 September 2005 Status: Offline Points: 26 |
Post Options
Thanks(0)
Quote Reply
Topic: pane become grayed once hovering on the pPosted: 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? |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
mailhaim
Newbie
Joined: 28 September 2005 Status: Offline Points: 26 |
Post Options
Thanks(0)
Quote Reply
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 windowCXTPDockingPane* 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 expansionModifyStyleEx(0, WS_EX_TRANSPARENT); } } EnableToolTips(); return &m_repositoryTreeCtrl;} I hope it helps...
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
mailhaim
Newbie
Joined: 28 September 2005 Status: Offline Points: 26 |
Post Options
Thanks(0)
Quote Reply
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. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 25 January 2006 at 8:58am |
|
ok :)
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
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 |