[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: r21711 shows confirmation dialogs underneath the window they originated

From: Dmitry <wipedout_at_yandex.ru>
Date: Thu, 28 Jul 2011 14:16:57 +0400

Hey.

> > A dialog asking whether I want to delete a file with
> > local modification appears underneath the dialog window so that I
> > can't see that confirmation dialog until I drag the "open file"
> > dialog to the side.
> That appears to be a bug in VS2008. Because TSVN shows all dialogs with
> the window handle specified by the shell extension as its parent.
> That's the window handle TSVN uses as the parent window to show the
> dialog, as mentioned in the docs. But VS2008 actually passes the main
> window here, not the file-open window!
>
> Nothing I can do to work around this, at least not without breaking apps
> that pass the correct window handle.
Maybe the following strategy could be used: call GetFocus(), then check that the returned windows macthes ot is a descendant of the one specified by the caller and if those two conditions are met use the one returned by GetFocus(). I mean it's the windows which spawned the context menu - it will likely have keyboard focus. Will this help?

Thank you.
Dmitry.

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=2805237

To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2011-07-28 12:17:02 CEST

This is an archived mail posted to the TortoiseSVN Dev mailing list.