?
Solved

How to make a dialog dock on the main window?

Posted on 2003-03-27
3
Medium Priority
?
437 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
  • 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

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Question has a verified solution.

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

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

578 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