Click here to Skip to main content
15,911,141 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CFile::GetFileTitle() broken. Pin
Jamie Hale29-Jan-02 10:00
Jamie Hale29-Jan-02 10:00 
GeneralRe: CFile::GetFileTitle() broken. Pin
Michael Dunn29-Jan-02 10:16
sitebuilderMichael Dunn29-Jan-02 10:16 
GeneralRe: CFile::GetFileTitle() broken. Pin
Jamie Hale29-Jan-02 11:09
Jamie Hale29-Jan-02 11:09 
GeneralRe: CFile::GetFileTitle() broken. Pin
Michael Dunn29-Jan-02 13:47
sitebuilderMichael Dunn29-Jan-02 13:47 
QuestionAutoupdate? Pin
AAntix29-Jan-02 5:10
AAntix29-Jan-02 5:10 
GeneralAnimated GIF's Pin
Adrian Metcalfe29-Jan-02 5:02
Adrian Metcalfe29-Jan-02 5:02 
GeneralRe: Animated GIF's Pin
Joaquín M López Muñoz29-Jan-02 5:11
Joaquín M López Muñoz29-Jan-02 5:11 
GeneralOnCancel Pin
ClayMoney29-Jan-02 3:33
ClayMoney29-Jan-02 3:33 
How do I break out of my main processing loop(OnOk)when the user selects the Cancel button. I was thinking along the lines that I should use:

MSG message; // declared out side the loop
for ( int t=0; t< mpData.GetSize(); t++ ) {
if (::PeekMessage(&message, NULL, 0, 0, PM_REMOVE)){
::TranslateMessage(&message);
::DispatchMessage(&message);
}
}

This does not seem to work. When I omit this piece of code and user hits Cancel, the program just runs until completed.
Any suggestions on how to remedy?

CD


Confused | :confused:
GeneralRe: OnCancel Pin
567890123429-Jan-02 4:02
567890123429-Jan-02 4:02 
GeneralCustom window like sonork messenger Pin
29-Jan-02 3:17
suss29-Jan-02 3:17 
GeneralRe: Custom window like sonork messenger Pin
Jamie Hale29-Jan-02 5:33
Jamie Hale29-Jan-02 5:33 
GeneralMonitor serial port activity Pin
Mehdi Mousavi29-Jan-02 1:41
Mehdi Mousavi29-Jan-02 1:41 
GeneralRe: Monitor serial port activity Pin
.::RockNix::.29-Jan-02 2:34
.::RockNix::.29-Jan-02 2:34 
GeneralRe: Monitor serial port activity Pin
Fredrik Skog29-Jan-02 3:17
Fredrik Skog29-Jan-02 3:17 
GeneralWord Automation: wdWindowStateNormal PROBLEM Pin
Braulio Dez29-Jan-02 0:21
Braulio Dez29-Jan-02 0:21 
GeneralRe: Word Automation: wdWindowStateNormal PROBLEM Pin
Joaquín M López Muñoz29-Jan-02 1:06
Joaquín M López Muñoz29-Jan-02 1:06 
GeneralRe: Word Automation: wdWindowStateNormal PROBLEM Pin
Braulio Dez29-Jan-02 1:21
Braulio Dez29-Jan-02 1:21 
Generaldebugging service Pin
.::RockNix::.29-Jan-02 0:02
.::RockNix::.29-Jan-02 0:02 
GeneralRe: debugging service Pin
Bill Wilson29-Jan-02 10:45
Bill Wilson29-Jan-02 10:45 
GeneralHeapReAlloc v.s realloc Pin
alex.barylski28-Jan-02 22:07
alex.barylski28-Jan-02 22:07 
GeneralRe: HeapReAlloc v.s realloc Pin
28-Jan-02 22:13
suss28-Jan-02 22:13 
GeneralRe: HeapReAlloc v.s realloc Pin
alex.barylski28-Jan-02 22:27
alex.barylski28-Jan-02 22:27 
GeneralRe: HeapReAlloc v.s realloc Pin
Philip Patrick28-Jan-02 22:14
professionalPhilip Patrick28-Jan-02 22:14 
GeneralRe: HeapReAlloc v.s realloc Pin
alex.barylski28-Jan-02 22:23
alex.barylski28-Jan-02 22:23 
GeneralRe: HeapReAlloc v.s realloc Pin
Philip Patrick28-Jan-02 22:31
professionalPhilip Patrick28-Jan-02 22:31 

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.