Re: After EndDialog(...)
From: Tim Robinson (tim.at.gaat.freeserve.co.uk_at_invalid.com)
Date: 04/30/04
- Next message: Jeff Partch: "Re: color rectangle"
- Previous message: vipin: "Re: After EndDialog(...)"
- In reply to: vipin: "Re: After EndDialog(...)"
- Next in thread: vipin: "Re: After EndDialog(...)"
- Reply: vipin: "Re: After EndDialog(...)"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 30 Apr 2004 21:48:38 +0100
vipin wrote:
> My msdn also says the same thing and I know english to understand it.
>
> I don't think you are right. I find the dialog ended( atleast I don't
> see it if I put a sleep(5000) after EndDialog(...) before the
> DlgProc returns. This is in win2k sp4. I want to know whether the
> call stack will be valid.
>
>
> windows ---> DlgProc[ EndDialog(...) , DialogBox(....)]
Sure, nothing touches the call stack. Even if EndDialog called DestroyWindow
straight away (which, according to MSDN, it doesn't), the call stack would
be fine. (The stack only goes away if you exit the thread.)
> Does windows still maintain the relation the intial "---->". What if
> the same HWND is alloted to a new window ?
Then you'd be referring to a different window when you thought you were
referring to your own window.
> something is missing in the msdn( some logical sequence????)
I don't think there is.
You could check this with Spy++. Run your program and set up a messages
window on the dialog box itself. Set a breakpoint on the EndDialog call.
Step over it and see what messages the dialog receives. If it's getting
WM_DESTROY and WM_NCDESTROY then the dialog box is going away.
-- Tim Robinson (MVP, Windows SDK) http://mobius.sourceforge.net/
- Next message: Jeff Partch: "Re: color rectangle"
- Previous message: vipin: "Re: After EndDialog(...)"
- In reply to: vipin: "Re: After EndDialog(...)"
- Next in thread: vipin: "Re: After EndDialog(...)"
- Reply: vipin: "Re: After EndDialog(...)"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|