?
Solved

CDialogBar help

Posted on 1998-05-04
7
Medium Priority
?
364 Views
Last Modified: 2013-11-20
null
0
Comment
Question by:phuene
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 7

Expert Comment

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

Author Comment

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

Accepted Solution

by:
Murali Devarakonda earned 200 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 http://support.microsoft.com/support/kb/articles/q98/1/98.asp
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

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

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.
0
 

Author Comment

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

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.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Suggested Courses

777 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