CDialogBar help

Posted on 1998-05-04
Last Modified: 2013-11-20
Question by:phuene
  • 3
  • 3

Expert Comment

ID: 1307168
There is internal MFC class CDockBar responsible for docking control bars. CControlbar class has a pointer to CDockBar and CDockBar's member function ReDockControlBar is called when redocking is neccessary

Author Comment

ID: 1307169
Thank you for the comment.  I've looked over the MFC source code and I now see the member pointer to the CDockBar class, but I'm not sure how this would help me, since I can't modify the member functions of CDockBar (without recompiling mfc of course).  I need someway to have the framework tell me when the docking status of the dialog bar has changed, as well, I need to know what happens and how to over-ride it when the user clicks on the "x" of the floating dialog bar.  Thanks.
                Peter Huene

Accepted Solution

Murali Devarakonda earned 100 total points
ID: 1307170
All messages for the CDialogBar go to it's parent- the Frame.
You can add handlers for relevant messages in either the Frame, View, Doc or App class(es).

Check out
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.


Author Comment

ID: 1307171
Does that include messages like WM_CLOSE and WM_SHOWWINDOW?  Or just control notification messages?

Expert Comment

by:Murali Devarakonda
ID: 1307172
The DialogBar class gets the WM_SHOWWINDOW. I don't see anyone getting the WM_CLOSE notification. You are right- the DialogBar is hidden, not closed.

You can implement custom behaviour by overriding OnCmdMsg.

Author Comment

ID: 1307173
Ok well, I see it gets WM_SHOWWINDOW, because OnShowWindow() is being called, but it isn't being called when the dialog bar is being hidden as a result of the user "closing" the dialog bar (selecting the close button).  Any ideas?

Expert Comment

by:Murali Devarakonda
ID: 1307174
Try using Spy++ utility that comes with Visual C++. You can monitor all messages generated by user interaction.

Good luck.

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Error on moodle after upgrade 3 140
C++ BOOL WINAPI ReadFile fails on windows 10 when reading from USB cable 9 475
pre4 challenge 19 104
mapAB Challlenge 35 159
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question