Re: CShellFileOpenDialog/CShellFileSaveDialog hang up my App

Nenad Stefanović <[email protected]> Fri, 17 Feb 2012 00:24:03 -0800
Newsgroups gmane.comp.windows.wtl
Message-ID <CAK3Hp+_SVYDdNH50tWpnYFNyV=g7XuNDwO9fSdkvqStgvLh=Pw@mail.gmail.com>
Parent needs to be a top level window, not just valid. Or, it could be
Vista - have you tried it on Win7?

Cheers,
Nenad




On Thu, Feb 16, 2012 at 10:44 PM, Konstantin Mironovich <[email protected]>wrote:

> **
>
>
> guess the parent is valid.
> furthermore CFileDialog works pretty good in this App.
> also both work in another WTL-based program.
> I suspect these Vista COM-based dialogs are just ill-designed.
>
>
> -km
>
> ----- Original Message -----
> From: Nenad Stefanovic
> To: [email protected]
> Sent: Friday, February 17, 2012 5:00 AM
> Subject: Re: [wtl] CShellFileOpenDialog/CShellFileSaveDialog hang up my
> App
>
> What is GetParent() returning in your code?
>
> Cheers,
> Nenad
>
> 2012/2/16 Konstantin Mironovich <[email protected]>
>
> > probably something wrong with my App mainloop.
> > fd.DoModal(::GetDesktopWindow()) works fine.
> >
> >
> > -km
> >
> > ----- Original Message -----
> > From: "Konstantin Mironovich" <[email protected]>
> > To: <[email protected]>
> > Sent: Wednesday, February 15, 2012 11:37 PM
> > Subject: [wtl] CShellFileOpenDialog/CShellFileSaveDialog hang up my App
> >
> >
> > > Hello,
> > >
> > > I wonder but I cannot find the reason.
> > > The code is:
> > >
> > > CShellFileSaveDialog fd;
> > >
> > > if (fd.DoModal(GetParent()) == IDOK)
> > >
> > > {
> > >
> > > CStringW s;
> > >
> > > fd.GetFilePath(s);
> > >
> > > }
> > >
> > > DoModal() hangs my WTL-based program. I believe the latest WTL build
> is
> > > used
> > > under Vista x64 + Sp2.
> > >
> > >
> > > Thanks
> > >
> > > -km
> > >
> > >
> > >
> > > ------------------------------------
> > >
> > > Yahoo! Groups Links
> > >
> > >
> > >
> > >
> >
> >
> >
> > ------------------------------------
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
>
> [Non-text portions of this message have been removed]
>
> [Non-text portions of this message have been removed]
>
>  
>


[Non-text portions of this message have been removed]



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/wtl/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/wtl/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/