?
Solved

How to make a dialog dock on the main window?

Posted on 2003-03-27
3
Medium Priority
?
426 Views
Last Modified: 2013-11-20
hi all,

I am a student and writing a program using VC++ and MFC.
I would like to ask how to make a dialog which may dock on the main window when the program is starting to run.

thank you for giving me help.
0
Comment
Question by:Rivnaldo
[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
  • 2
3 Comments
 
LVL 9

Expert Comment

by:Priyesh
ID: 8222598
look at CDialogBar
0
 

Expert Comment

by:Leo71
ID: 8223488
In the main mainframe:
1) Create Toolbar (toolbar.Create and then toolbar.LoadToolBar)
2)optional set specifc style (toolbar.SetBarStyle)
3) mainfram function: EnableDocking()
4) dock toolbar (toolbar.EnableDocking)
5) mainframe function: DockControlBar(&toolbar)

I think that's it :).

Regards
Leo
0
 

Accepted Solution

by:
Leo71 earned 60 total points
ID: 8223528
OK. I didnt' see Dialog :).
Use the class CDialogBar instead of CToolbar/CDialog.
Description is the same as above exept LoadToolBar.

Regards
Leo
0

Featured Post

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.

Question has a verified solution.

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

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

770 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