Click here to Skip to main content
15,890,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Strange resource stuff????? Pin
jimNLX6-Sep-02 10:49
jimNLX6-Sep-02 10:49 
GeneralRe: Strange resource stuff????? Pin
Jawache6-Sep-02 12:48
Jawache6-Sep-02 12:48 
GeneralOwner Drawn Menus Pin
Paul C6-Sep-02 5:42
Paul C6-Sep-02 5:42 
GeneralRe: Owner Drawn Menus Pin
Jawache6-Sep-02 12:51
Jawache6-Sep-02 12:51 
GeneralRe: Owner Drawn Menus Pin
Paul C6-Sep-02 23:47
Paul C6-Sep-02 23:47 
GeneralSet window to be topmost Pin
BlackSmith6-Sep-02 5:20
BlackSmith6-Sep-02 5:20 
GeneralRe: Set window to be topmost Pin
Joaquín M López Muñoz6-Sep-02 6:32
Joaquín M López Muñoz6-Sep-02 6:32 
GeneralVery strange behavior trying to exit. Please help! Pin
ns6-Sep-02 5:04
ns6-Sep-02 5:04 
This is an MFC CFormView MDI application and this code is in the View class.

I have a CFileDialogST from which I want to terminate the app in case the user presses cancel. Its a class from CP by Davide Calabro. I trap the IDCANCEL and indeed i do get the messagebox, but I've tried

a. PostQuitMessage is ignored

b. PostMessage(WM_CLOSE) is ignored

c. SendMessage(WM_CLOSE) is ignored

d. exit(0) makes the app crash!

if(nRetValue == IDCANCEL)
{
    AfxMessageBox ("No Image folder selected, terminating application");
    PostMessage(WM_CLOSE);
//  exit(0);
}


This message No Image folder selected, terminating application shows up so I know it gets in the if.

Please help!
Thanks,
ns
GeneralRe: Very strange behavior trying to exit. Please help! Pin
[James Pullicino]6-Sep-02 5:10
[James Pullicino]6-Sep-02 5:10 
GeneralRe: Very strange behavior trying to exit. Please help! Pin
Joaquín M López Muñoz6-Sep-02 6:25
Joaquín M López Muñoz6-Sep-02 6:25 
GeneralRe: Very strange behavior trying to exit. Please help! Pin
ns6-Sep-02 7:31
ns6-Sep-02 7:31 
GeneralRe: Very strange behavior trying to exit. Please help! Pin
ns6-Sep-02 7:39
ns6-Sep-02 7:39 
GeneralRe: Very strange behavior trying to exit. Please help! Pin
[James Pullicino]6-Sep-02 7:51
[James Pullicino]6-Sep-02 7:51 
GeneralRe: Very strange behavior trying to exit. Please help! Pin
ns6-Sep-02 7:58
ns6-Sep-02 7:58 
GeneralRe: Very strange behavior trying to exit. Please help! Pin
[James Pullicino]6-Sep-02 8:11
[James Pullicino]6-Sep-02 8:11 
GeneralRe: Very strange behavior trying to exit. Please help! Pin
ns6-Sep-02 8:17
ns6-Sep-02 8:17 
GeneralRe: Very strange behavior trying to exit. Please help! Pin
Joaquín M López Muñoz6-Sep-02 7:59
Joaquín M López Muñoz6-Sep-02 7:59 
GeneralRe: Very strange behavior trying to exit. Please help! Pin
ns6-Sep-02 8:01
ns6-Sep-02 8:01 
GeneralRe: Very strange behavior trying to exit. Please help! Pin
Joaquín M López Muñoz6-Sep-02 8:09
Joaquín M López Muñoz6-Sep-02 8:09 
GeneralRe: Very strange behavior trying to exit. Please help! Pin
ns6-Sep-02 8:11
ns6-Sep-02 8:11 
GeneralRe: Very strange behavior trying to exit. Please help! Pin
Joaquín M López Muñoz6-Sep-02 8:18
Joaquín M López Muñoz6-Sep-02 8:18 
GeneralRe: Very strange behavior trying to exit. Please help! Pin
ns6-Sep-02 8:21
ns6-Sep-02 8:21 
GeneralRe: Very strange behavior trying to exit. Please help! Pin
Joaquín M López Muñoz6-Sep-02 8:28
Joaquín M López Muñoz6-Sep-02 8:28 
GeneralRe: Very strange behavior trying to exit. Please help! Pin
ns6-Sep-02 8:30
ns6-Sep-02 8:30 
GeneralRe: Very strange behavior trying to exit. Please help! Pin
ns6-Sep-02 8:34
ns6-Sep-02 8:34 

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.