Click here to Skip to main content
15,894,540 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how can I forbid the user to use print function Pin
Member 200639817-Aug-06 17:38
Member 200639817-Aug-06 17:38 
QuestionTcpServer component Pin
jeeves66617-Aug-06 16:11
jeeves66617-Aug-06 16:11 
QuestionSomeone broke CString Pin
bob1697217-Aug-06 11:18
bob1697217-Aug-06 11:18 
AnswerRe: Someone broke CString Pin
Kevin McFarlane17-Aug-06 12:15
Kevin McFarlane17-Aug-06 12:15 
AnswerRe: Someone broke CString Pin
RChin17-Aug-06 12:20
RChin17-Aug-06 12:20 
GeneralRe: Someone broke CString Pin
George L. Jackson17-Aug-06 14:31
George L. Jackson17-Aug-06 14:31 
AnswerRe: Someone broke CString Pin
Joe Woodbury17-Aug-06 17:29
professionalJoe Woodbury17-Aug-06 17:29 
QuestionEndDialog / Message Pump question Pin
charlieg17-Aug-06 10:26
charlieg17-Aug-06 10:26 
I have some odd behavior in my program, and I want to make sure
I understand message handling behavior. Let's say I have a simple
mfc dialog application where I do a .DoModal in the InitInstance of the
application. The dialog itself draws a little picture and uses a timer event
for animation.

So, let's say our timer is really fast. Things are thundering along, and the user presses ok. The OnClickOkBtn executes, at which point we do a:

KillTimer(nId);
EndDialog(IDC_OK_BTN);

The $10 question: do any other events execute before execution returns to the InitInstance method? The help file is tantalizingly playful and says:

"EndDialog does not close the dialog box immediately. Instead, it sets a flag that directs the dialog box to close as soon as the message handler returns."

This would seem to imply that I might get just a little more activity.




Charlie Gilley
Will program for food...
Whoever said children were cheaper by the dozen... lied.

My son's PDA is an M249 SAW.
My other son commutes in an M1A2 Abrams

AnswerRe: EndDialog / Message Pump question Pin
led mike17-Aug-06 11:11
led mike17-Aug-06 11:11 
Questionproblem with "new" Pin
Wheatbread17-Aug-06 9:59
Wheatbread17-Aug-06 9:59 
AnswerRe: problem with "new" Pin
Zac Howland17-Aug-06 10:13
Zac Howland17-Aug-06 10:13 
GeneralRe: problem with "new" Pin
led mike17-Aug-06 10:30
led mike17-Aug-06 10:30 
GeneralRe: problem with "new" Pin
Zac Howland17-Aug-06 10:35
Zac Howland17-Aug-06 10:35 
GeneralRe: problem with "new" Pin
Wheatbread17-Aug-06 10:54
Wheatbread17-Aug-06 10:54 
GeneralRe: problem with "new" Pin
wbasheer17-Aug-06 17:16
wbasheer17-Aug-06 17:16 
GeneralRe: problem with "new" Pin
Zac Howland17-Aug-06 19:31
Zac Howland17-Aug-06 19:31 
GeneralRe: problem with "new" Pin
Wheatbread18-Aug-06 1:30
Wheatbread18-Aug-06 1:30 
GeneralRe: problem with "new" Pin
Zac Howland18-Aug-06 3:31
Zac Howland18-Aug-06 3:31 
QuestionHow to know whether a file is saved or not Pin
napoleaninlondon17-Aug-06 9:27
napoleaninlondon17-Aug-06 9:27 
AnswerRe: How to know whether a file is saved or not Pin
led mike17-Aug-06 9:42
led mike17-Aug-06 9:42 
GeneralRe: How to know whether a file is saved or not Pin
napoleaninlondon17-Aug-06 9:51
napoleaninlondon17-Aug-06 9:51 
GeneralRe: How to know whether a file is saved or not Pin
Maximilien17-Aug-06 10:13
Maximilien17-Aug-06 10:13 
GeneralRe: How to know whether a file is saved or not Pin
Waldermort17-Aug-06 12:07
Waldermort17-Aug-06 12:07 
GeneralRe: How to know whether a file is saved or not Pin
led mike17-Aug-06 10:24
led mike17-Aug-06 10:24 
GeneralRe: How to know whether a file is saved or not Pin
Jijo.Raj17-Aug-06 14:55
Jijo.Raj17-Aug-06 14:55 

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.