Toolbar capabilty in dialog window?

  • Thread starter Thread starter sweetjones
  • Start date Start date
  • Tags Tags
    Window
Click For Summary

Discussion Overview

The discussion centers around implementing printing capabilities and toolbars in an MFC (Microsoft Foundation Classes) dialog window. Participants explore the limitations of MFC regarding toolbars and menus in dialog-based applications, as well as potential workarounds for adding printing functionality.

Discussion Character

  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant inquires about implementing printing capability in an MFC dialog window and expresses difficulty in using SDI with CFormView due to lack of printing support.
  • Another participant clarifies the distinction between toolbars and menus, suggesting that toolbars are not directly supported in MFC and may require custom drawing.
  • A participant confirms the need for a print function from an edit control and expresses a desire for a toolbar, while acknowledging the provided link for further assistance.
  • One participant suggests that adding a print button to the dialog may suffice, indicating that a toolbar is not necessary.
  • A later reply argues against placing a toolbar in a modal dialog, citing potential violations of human-computer interaction guidelines.

Areas of Agreement / Disagreement

Participants express differing views on the necessity and appropriateness of using a toolbar in a dialog window, with some suggesting alternatives like a print button. There is no consensus on the best approach to implement printing capabilities.

Contextual Notes

Participants discuss the limitations of MFC in supporting toolbars within dialog-based applications, and the conversation reflects varying opinions on user interface design principles.

sweetjones
Messages
44
Reaction score
0
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.
 
Technology news on Phys.org
mgb_phys said:
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 going to 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!
 
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 - there's no need for it to be a toolbar.
 
mgb_phys said:
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 - there's no need for it to be a toolbar.

Great point! Thankx for the help and reference once again.
 
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
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
3K
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 13 ·
Replies
13
Views
6K
  • · Replies 19 ·
Replies
19
Views
2K
Replies
2
Views
2K