Click here to Skip to main content
16,010,650 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralMany thanks! Pin
ns25-Jul-02 5:54
ns25-Jul-02 5:54 
Generalqick easy question for cout<< Pin
pnpfriend25-Jul-02 5:16
pnpfriend25-Jul-02 5:16 
GeneralRe: qick easy question for cout<< Pin
Alexandru Savescu25-Jul-02 5:32
Alexandru Savescu25-Jul-02 5:32 
GeneralRe: qick easy question for cout<< Pin
pnpfriend25-Jul-02 5:42
pnpfriend25-Jul-02 5:42 
GeneralRe: qick easy question for cout<< Pin
Alexandru Savescu25-Jul-02 5:46
Alexandru Savescu25-Jul-02 5:46 
GeneralRe: qick easy question for cout<< Pin
pnpfriend25-Jul-02 5:57
pnpfriend25-Jul-02 5:57 
GeneralRe: qick easy question for cout<< Pin
Joaquín M López Muñoz25-Jul-02 6:27
Joaquín M López Muñoz25-Jul-02 6:27 
GeneralOnCloseDocument Pin
NickOne25-Jul-02 4:28
NickOne25-Jul-02 4:28 
Hello all,


I am here to pester you guys with more project and code questions.

So here is the current one that maybe you guys can explain to me.

Let's say I do not want my MDI Child window to close when you press the 'X' button in the top right. So, I figured to do this, I would edit OnCloseDocument, and ahve it do...you guessed it....absolutely nothing. I comment out the CDocument::OnCloseDocument(); statement.

Voila, the 'X' button no longer works. So I was kinda right. Here's the fun part. I press the 'X', the project doesn't close, like I figure. BUT, I press exit, to exit everything, and in the Taskmanager, the project is still there.

I think this is bad.

What do you guys think? Anyideas on how to render the 'X' button ineffectual?

Thanks,

NickOne
GeneralRe: OnCloseDocument Pin
Tomasz Sowinski25-Jul-02 4:34
Tomasz Sowinski25-Jul-02 4:34 
GeneralRe: OnCloseDocument Pin
NickOne25-Jul-02 4:54
NickOne25-Jul-02 4:54 
GeneralRe: OnCloseDocument Pin
Tomasz Sowinski25-Jul-02 4:58
Tomasz Sowinski25-Jul-02 4:58 
GeneralRe: OnCloseDocument Pin
NickOne25-Jul-02 5:08
NickOne25-Jul-02 5:08 
GeneralRe: OnCloseDocument Pin
Tomasz Sowinski25-Jul-02 5:12
Tomasz Sowinski25-Jul-02 5:12 
GeneralRe: OnCloseDocument Pin
NickOne25-Jul-02 5:26
NickOne25-Jul-02 5:26 
GeneralRe: OnCloseDocument Pin
Tomasz Sowinski25-Jul-02 5:31
Tomasz Sowinski25-Jul-02 5:31 
GeneralRe: OnCloseDocument Pin
NickOne25-Jul-02 5:50
NickOne25-Jul-02 5:50 
GeneralRe: OnCloseDocument Pin
Tomasz Sowinski25-Jul-02 5:54
Tomasz Sowinski25-Jul-02 5:54 
Generalpassword protection - seeking help Pin
Member 44313725-Jul-02 4:09
Member 44313725-Jul-02 4:09 
GeneralRe: password protection - seeking help Pin
benjymous25-Jul-02 4:33
benjymous25-Jul-02 4:33 
GeneralArrays of MFC controls Pin
Ziban25-Jul-02 3:57
Ziban25-Jul-02 3:57 
GeneralRe: Arrays of MFC controls Pin
silverspoon25-Jul-02 4:24
silverspoon25-Jul-02 4:24 
GeneralRe: Arrays of MFC controls Pin
Alexandru Savescu25-Jul-02 5:28
Alexandru Savescu25-Jul-02 5:28 
GeneralModeles with modal dialogs! Pin
quaser25-Jul-02 3:54
quaser25-Jul-02 3:54 
GeneralRe: Modeles with modal dialogs! Pin
Chris Losinger25-Jul-02 4:53
professionalChris Losinger25-Jul-02 4:53 
GeneralCreating Help! Pin
Anonymous25-Jul-02 3:24
Anonymous25-Jul-02 3:24 

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.