Report Control and Splitter |
Post Reply |
Author | |
mawi
Newbie Joined: 15 October 2009 Location: Austria Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 15 October 2009 at 6:01pm |
Hi,
we've implemented a docking pane containing a splitter configured to use 3 rows. Each row contains a ReportControl. Everything seems to work fine except one stragne behaviour: how to repeat: 1) some other docking panes are created (panes are docked) 2) our problematic docking pane with splitter and report controls is created (pane is docked) 3) left mouse click on a report column header (eg. change sort order) 4) undock our pane (double click on pane header) 5) error: all other panes do not get any mouse events any more the menu of the application is still working, also the toolbar buttons get mouse events. (I'd like to drag an item from another pane containing a tree-view to my undocked problematic pane.) 6) after re-docking the problematic pane, the other panes gets their mouse events again... How can I fix this problem? Any idea? Is there something wrong with my the parent or owner of the report control or of the splitter window? (I've checkted the pointers, they seems to be OK.) Do I have to set a specific configuration at the DockingPaneManager to handle a splitter correctly? thanks for response ... |
|
mawi
Newbie Joined: 15 October 2009 Location: Austria Status: Offline Points: 2 |
Post Options
Thanks(0)
|
Finally I've found the problem myself. My window that should be shown in the docking pane was
derived from CWnd which is an error.
class DataTransmissionGUIDlg : public CWnd // also tried to derive directly from CXTSplitterWnd (same problem) ... I've enhanced the ActivePaneView example with a splitter window and there I could see that I need a CView derived class instad of a CWnd derived one. The CView derived class can then be attached to the pane using pPane->AttachView(pMyFrameWindow, RUNTIME_CLASS(...)) instead of pPane->Attache(pMyCWndDerivedClass); After changing the creation process of my window the header-click problem is gone. |
|
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 |