Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - pane become grayed once hovering on the p
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

pane become grayed once hovering on the p

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


Joined: 28 September 2005
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote mailhaim Quote  Post ReplyReply Direct Link To This Post Topic: pane become grayed once hovering on the p
    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?

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 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
Back to Top
mailhaim View Drop Down
Newbie
Newbie


Joined: 28 September 2005
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote mailhaim Quote  Post ReplyReply Direct Link To This Post 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...

 

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 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
Back to Top
mailhaim View Drop Down
Newbie
Newbie


Joined: 28 September 2005
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote mailhaim Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 25 January 2006 at 8:58am
ok :)
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.031 seconds.