Re: After EndDialog(...)
From: vipin (vipin_at_nospam.com)
Date: 04/30/04
- Next message: Mike Weeks: "Ghost windows in XP hang display"
- Previous message: Jeff Partch: "Re: color rectangle"
- In reply to: Tim Robinson: "Re: After EndDialog(...)"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 1 May 2004 03:24:51 +0530
Before I talk further, I will get back once I get a chance to diagnose a
problem remotely on one of the european locale win2ksp4 machines next week.
If I see this is indeed the problem I am gonna come back.
Till then bye
vipin
"Tim Robinson" <tim.at.gaat.freeserve.co.uk@invalid.com> wrote in message
news:c6ue32$ff9in$1@ID-103400.news.uni-berlin.de...
> 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: Mike Weeks: "Ghost windows in XP hang display"
- Previous message: Jeff Partch: "Re: color rectangle"
- In reply to: Tim Robinson: "Re: After EndDialog(...)"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|