Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Report Control and Splitter
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Report Control and Splitter

 Post Reply Post Reply
Author
Message
mawi View Drop Down
Newbie
Newbie
Avatar

Joined: 15 October 2009
Location: Austria
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote mawi Quote  Post ReplyReply Direct Link To This Post Topic: Report Control and Splitter
    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 ...
Back to Top
mawi View Drop Down
Newbie
Newbie
Avatar

Joined: 15 October 2009
Location: Austria
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote mawi Quote  Post ReplyReply Direct Link To This Post Posted: 01 December 2009 at 9:46am
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.  
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.141 seconds.