Click here to Skip to main content
15,885,365 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Locating a function address with the debugger Pin
Erudite_Eric19-Mar-13 2:37
Erudite_Eric19-Mar-13 2:37 
GeneralRe: Locating a function address with the debugger Pin
Richard Andrew x6419-Mar-13 4:41
professionalRichard Andrew x6419-Mar-13 4:41 
GeneralRe: Locating a function address with the debugger Pin
Erudite_Eric20-Mar-13 3:29
Erudite_Eric20-Mar-13 3:29 
GeneralRe: Locating a function address with the debugger Pin
Stephen Hewitt19-Mar-13 5:17
Stephen Hewitt19-Mar-13 5:17 
GeneralRe: Locating a function address with the debugger Pin
Erudite_Eric20-Mar-13 3:30
Erudite_Eric20-Mar-13 3:30 
QuestionFailed to compile chrome Pin
yu-jian16-Mar-13 6:27
yu-jian16-Mar-13 6:27 
AnswerRe: Failed to compile chrome Pin
Richard MacCutchan16-Mar-13 6:34
mveRichard MacCutchan16-Mar-13 6:34 
QuestionCTreeCtrl, CDockingPane, and mouse events Pin
Rob Bryce15-Mar-13 20:33
Rob Bryce15-Mar-13 20:33 
Hi All, many thanks up-front to anyone who can help here.

I have a client that wants me to migrate a CTreeView-derived class to one which works like a docking pane. The class is so large now that it's not feasible to rewrite everything.

So...I still have the underlying CTreeCtrl-derived class (more/less untouched), which is a child of a class derived from CDockablePane (migrated from the CView class). I've also derived from CMultiPaneFrameWnd (used when the pane is floating) to try to trap events.

I've got it working about 80%. I need help/direction with the other 20%. I've got the CDockablePane derived class working with bulk of the MESSAGE_MAP events (menu handlers, ON_UPDATE_COMMAND_UI, etc.) working correctly. The events associated with the mouse are giving me grief.

I see 3 standard modes for the dockable pane: floating, docked, and tabbed. And they all behave differently w/r to mouse events - and depending on the docking mode.

For example:
* If the docking mode is DT_SMART *and* the pane is NOT floating, then drag&drop and double-clicking work correctly.
* If the docking mode isn't DT_SMART, then drag&drop usually tries to drag the complete docking pane instead of working correctly (regardless of floating, docked, tabbed).
* When the pane is floating, I can't trap WM_LBUTTONDBLCLK (unless you click on the lines and little [+] boxes...) or the respective notify or reflect messages - even Spy++ doesn't record them. I just don't see any left button double-click events - at all!

Google searches show that I'm not the only one with these types of issues. I've read and tried pretty well every suggestion...and I still have these issues. I'm now concerned about bugs or assumptions in the framework after reading this:
http://connect.microsoft.com/VisualStudio/feedback/details/641096/cdockablepane-calls-releasecapture[^]

This link: http://www.johnbyrd.org/blog/index.php?itemid=405[^] helped a lot but didn't solve all issues either.

I can also replicate these issues (unable to trap double-clicking when floating) in the VisualStudioDemo feature pack demo.

Any suggestions on how to get a CTreeCtrl to work inside a CDockingPane - consistently - would be really appreciated. I feel that many issues are related to CMultiPaneFrameWnd, but can't resolve them.

Thanks!
AnswerRe: CTreeCtrl, CDockingPane, and mouse events Pin
Eugen Podsypalnikov19-Mar-13 0:23
Eugen Podsypalnikov19-Mar-13 0:23 
AnswerRe: CTreeCtrl, CDockingPane, and mouse events Pin
Rob Bryce19-Mar-13 17:08
Rob Bryce19-Mar-13 17:08 
QuestionDrivers to access parallel port in c using windows xp or 7 ?? Pin
Harshmeet Singh15-Mar-13 8:36
Harshmeet Singh15-Mar-13 8:36 
QuestionRe: Drivers to access parallel port in c using windows xp or 7 ?? Pin
David Crow15-Mar-13 9:54
David Crow15-Mar-13 9:54 
AnswerRe: Drivers to access parallel port in c using windows xp or 7 ?? Pin
Richard MacCutchan15-Mar-13 23:08
mveRichard MacCutchan15-Mar-13 23:08 
AnswerRe: Drivers to access parallel port in c using windows xp or 7 ?? Pin
Erudite_Eric17-Mar-13 1:18
Erudite_Eric17-Mar-13 1:18 
AnswerRe: Drivers to access parallel port in c using windows xp or 7 ?? Pin
_Flaviu17-Mar-13 20:49
_Flaviu17-Mar-13 20:49 
QuestionC++ Code to call a Rest Based Web Service API Pin
raghunath sahoo15-Mar-13 7:56
raghunath sahoo15-Mar-13 7:56 
AnswerRe: C++ Code to call a Rest Based Web Service API Pin
Albert Holguin15-Mar-13 8:34
professionalAlbert Holguin15-Mar-13 8:34 
GeneralRe: C++ Code to call a Rest Based Web Service API Pin
raghunath sahoo15-Mar-13 8:55
raghunath sahoo15-Mar-13 8:55 
GeneralRe: C++ Code to call a Rest Based Web Service API Pin
raghunath sahoo15-Mar-13 8:57
raghunath sahoo15-Mar-13 8:57 
AnswerRe: C++ Code to call a Rest Based Web Service API Pin
Albert Holguin15-Mar-13 9:32
professionalAlbert Holguin15-Mar-13 9:32 
QuestionVC++ and Empty Base Class Optimization problem/bug Pin
Kosta Cherry15-Mar-13 4:45
Kosta Cherry15-Mar-13 4:45 
AnswerRe: VC++ and Empty Base Class Optimization problem/bug Pin
Matthew Faithfull15-Mar-13 6:01
Matthew Faithfull15-Mar-13 6:01 
GeneralRe: VC++ and Empty Base Class Optimization problem/bug Pin
Kosta Cherry15-Mar-13 6:23
Kosta Cherry15-Mar-13 6:23 
GeneralRe: VC++ and Empty Base Class Optimization problem/bug Pin
Matthew Faithfull15-Mar-13 6:36
Matthew Faithfull15-Mar-13 6:36 
GeneralRe: VC++ and Empty Base Class Optimization problem/bug Pin
David Crow15-Mar-13 7:34
David Crow15-Mar-13 7:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.