Toolbar capabilty in dialog window?

  • Thread starter sweetjones
  • Start date
44
0

Main Question or Discussion Point

I've searched this sight but to no avail. I am wondering how can i implement printing capabilty in my MFC dialog window. I've tried creating a SDI with the CFormView Class, but there is no printing support that way. If I try to make a Dialog-Based Application the "Standard Toolbar" option cannot be selected. However, through a Dialog-Based App I can create a System Menu and insert a "Print" menu item. But how can you implement a toolbar in a Dialog window? I'm using VC++ 2005.
 

Answers and Replies

mgb_phys
Science Advisor
Homework Helper
7,744
12
44
0
Do you mean toolbar or menus?
It's not directly supported in MFC so you have to draw it yourself - here is a good place to start http://www.codeproject.com/KB/dialog/cdialogex.aspx
I meant toolbars. I am going to have to print something from an edit control so I'm gonna need a print function. I want a system menu option, which I can figure out how to insert, and I want a toolbar, which I cannot figure out how to insert. I'll take a look at the link you provided. Thanx for your help!!!
 
mgb_phys
Science Advisor
Homework Helper
7,744
12
codeproject is a good source for working around all the features of MFC.
You can of course always just add a print button to the dialog - theres no need for it to be a toolbar.
 
44
0
codeproject is a good source for working around all the features of MFC.
You can of course always just add a print button to the dialog - theres no need for it to be a toolbar.
Great point! Thankx for the help and reference once again.
 
chroot
Staff Emeritus
Science Advisor
Gold Member
10,165
34
Honestly, you don't want to put a toolbar in a modal dialog anyway. It breaks all sorts of long-standing guidelines in effective human-computer interaction.

- Warren
 

Related Threads for: Toolbar capabilty in dialog window?

  • Last Post
Replies
8
Views
4K
Replies
3
Views
2K
  • Last Post
2
Replies
38
Views
2K
Replies
1
Views
3K
  • Last Post
Replies
2
Views
1K
  • Last Post
Replies
3
Views
6K
Replies
1
Views
4K
  • Last Post
Replies
4
Views
2K
Top