CTreeCtrl with DockPaneDlg |
Post Reply |
Author | |
devam
Groupie Joined: 20 March 2008 Location: India Status: Offline Points: 15 |
Post Options
Thanks(0)
Posted: 20 March 2008 at 5:34am |
I have a docking pane to which I am attaching a dialog. The dialog is derived from CXTResizeDialog. I am creating a CTreeCtrl statically through the resource view within the dialog. OnInit dialog initializes the tree control.
But the problem is that whenever i call a setcheck() API to check the items in the tree, the checkmark is not visible on the GUI. calling getcheck() on the same tree item returns 1, which indicates that it is checked, but the checkmark is not visible on the GUI.
Can anyone help me in this regard? Is there any GUI related issues with a dockingpane dialog and a tree control?
|
|
DC
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi, There is one bug in standard TreeCtrl. All Check Marks will be reset after first drawing of Tree Control.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
devam
Groupie Joined: 20 March 2008 Location: India Status: Offline Points: 15 |
Post Options
Thanks(0)
|
The CtreeCtrl behaves perfectly when it is created at runtime (dynamically)on a CXTPTaskPanel, but when i put it on a dockpane dialog, the checkmarks are not visible when the window comes up for the first time.
If I close the dock pane (from the GUI) and then display the dockpane dialog again, then the tree comes up with the checkmarks visible!
I am using Xtreme ToolkitPor version 9.8
Is there any work-around applicable for this? Or is it that it just cannot be done?
|
|
DC
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
I just wrote reason... Workaround is don't set TVS_CHECKBOXES in OnCreate but call
m_wndTree.ModifyStyle(0, TVS_CHECKBOXES ); before you set Check Marks.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
devam
Groupie Joined: 20 March 2008 Location: India Status: Offline Points: 15 |
Post Options
Thanks(0)
|
Thank you for all the help. It worked!!!
|
|
DC
|
|
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 |