Click here to Skip to main content
15,888,238 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to change the string of a MFC Menu item that contains '\t' Pin
Jochen Arndt13-May-13 20:57
professionalJochen Arndt13-May-13 20:57 
QuestionCdialog::Create Never comes back Pin
ForNow12-May-13 18:04
ForNow12-May-13 18:04 
AnswerRe: Cdialog::Create Never comes back Pin
Richard MacCutchan12-May-13 21:07
mveRichard MacCutchan12-May-13 21:07 
Questionwhat is the difference between "static" function and "inline" function? [SOLVED] Pin
yu-jian12-May-13 16:53
yu-jian12-May-13 16:53 
AnswerRe: what is the difference between "static" function and "inline" function? Pin
SoMad12-May-13 18:29
professionalSoMad12-May-13 18:29 
GeneralRe: what is the difference between "static" function and "inline" function? Pin
yu-jian14-May-13 4:13
yu-jian14-May-13 4:13 
AnswerRe: what is the difference between "static" function and "inline" function? Pin
pasztorpisti12-May-13 21:58
pasztorpisti12-May-13 21:58 
QuestionCHtmlEditCtrl - Overriding printer dialog and use with modeless dialogs Pin
Member 822518012-May-13 4:31
Member 822518012-May-13 4:31 
Reference: http://stackoverflow.com/questions/8982965/printing-in-mfc-application[^]


Question #1: I have a Dialog based app using sample code taken above. App runs fine. I want to avoid having the popup printer selection window appear once the print job is started (i.e. when PrintDocument() is called). I just want to print to the default printer. How can I do this?


Issue #2:

This dialog app itself creates numerous other new dialog windows depending on user's selection.

There is a need to have many of the features provided by this dialog application implemented as command line features.

What did I do? ...

Upon app started, I created a modeless dialog object with the intent not to display the dialog (unless absolutely necessary).

Some of the dialog methods do function. The method that handles the printing does not work.

The code fragment that causes a problem is CBatchResultsDlg::WaitForComplete() - because of AfxPumpMessage(). The owner of the CHtmlEditCtrl object is the Desktop window because setting the dialog window creating the object as owner fails.

How can I fix this such that my printing will work.
QuestionHow to set up a computer for network programming on UNIX [SOLVED] Pin
noislude11-May-13 13:44
noislude11-May-13 13:44 
AnswerRe: How to set up a computer for network programming on UNIX Pin
Richard MacCutchan11-May-13 21:24
mveRichard MacCutchan11-May-13 21:24 
GeneralRe: How to set up a computer for network programming on UNIX Pin
noislude12-May-13 3:43
noislude12-May-13 3:43 
GeneralRe: How to set up a computer for network programming on UNIX Pin
Richard MacCutchan12-May-13 3:58
mveRichard MacCutchan12-May-13 3:58 
GeneralRe: How to set up a computer for network programming on UNIX Pin
noislude12-May-13 4:09
noislude12-May-13 4:09 
GeneralRe: How to set up a computer for network programming on UNIX Pin
Richard MacCutchan12-May-13 4:15
mveRichard MacCutchan12-May-13 4:15 
GeneralRe: How to set up a computer for network programming on UNIX Pin
dusty_dex12-May-13 5:02
dusty_dex12-May-13 5:02 
GeneralRe: How to set up a computer for network programming on UNIX Pin
noislude12-May-13 8:54
noislude12-May-13 8:54 
QuestionStrange ERROR!!!!!!!!!!!!!????????????? Pin
OmarSH11-May-13 10:02
OmarSH11-May-13 10:02 
AnswerRe: Strange ERROR!!!!!!!!!!!!!????????????? Pin
dusty_dex11-May-13 10:23
dusty_dex11-May-13 10:23 
GeneralRe: Strange ERROR!!!!!!!!!!!!!????????????? Pin
OmarSH11-May-13 11:06
OmarSH11-May-13 11:06 
GeneralRe: Strange ERROR!!!!!!!!!!!!!????????????? Pin
dusty_dex11-May-13 12:51
dusty_dex11-May-13 12:51 
AnswerRe: Strange ERROR!!!!!!!!!!!!!????????????? Pin
Richard MacCutchan11-May-13 21:22
mveRichard MacCutchan11-May-13 21:22 
GeneralRe: Strange ERROR!!!!!!!!!!!!!????????????? Pin
OmarSH12-May-13 3:09
OmarSH12-May-13 3:09 
GeneralRe: Strange ERROR!!!!!!!!!!!!!????????????? Pin
Richard MacCutchan12-May-13 3:26
mveRichard MacCutchan12-May-13 3:26 
GeneralRe: Strange ERROR!!!!!!!!!!!!!????????????? Pin
OmarSH12-May-13 3:38
OmarSH12-May-13 3:38 
GeneralRe: Strange ERROR!!!!!!!!!!!!!????????????? Pin
Richard MacCutchan12-May-13 3:54
mveRichard MacCutchan12-May-13 3:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.