[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 16:57:23 +0400


> > 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?
> No, won't help:
Okay, I agree that using focus is not a good idea. However I think using the fact that a window is modal can help here. Something like this: enumerate all windows using GetWindows(), filter only those that belong to current thread (GetWindowThreadProcessId()), then filter only those that have DS_MODALFRAME style, then select the topmost of them (using GW_HWNDNEXT with GetWindow() will I guess retrieve windows right in Z-order). Will this work?

Thank you.


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

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.