Solved

CDialogBar help

Posted on 1998-05-04
7
302 Views
Last Modified: 2013-11-20
null
0
Comment
Question by:phuene
  • 3
  • 3
7 Comments
 
LVL 7

Expert Comment

by:galkin
Comment Utility
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
0
 

Author Comment

by:phuene
Comment Utility
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
0
 
LVL 1

Accepted Solution

by:
MuraliKrishna earned 100 total points
Comment Utility
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 http://support.microsoft.com/support/kb/articles/q98/1/98.asp
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:phuene
Comment Utility
Does that include messages like WM_CLOSE and WM_SHOWWINDOW?  Or just control notification messages?
0
 
LVL 1

Expert Comment

by:MuraliKrishna
Comment Utility
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.
0
 

Author Comment

by:phuene
Comment Utility
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?
0
 
LVL 1

Expert Comment

by:MuraliKrishna
Comment Utility
Try using Spy++ utility that comes with Visual C++. You can monitor all messages generated by user interaction.

Good luck.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli‚Ķ
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

728 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now