[Qt-interest] Qt EnumWindows

David Ching dc at remove-this.dcsoft.com
Fri May 14 18:27:08 CEST 2010


"Raja Rokkam" <rokkamraja at gmail.com> wrote in message 
news:AANLkTimj4LORjJIaRwPPj0DxEMDKiHb49S67B8wQH2Gq at mail.gmail.com...
> Hi,
>
> All I need is simply to get list of windows that are visible using 
> EnumWindows and place a sample button on each of windows.
> Can this be possible ? A small snippet will be really helpful.
>
> Or more precisely, given a list of coordinates, place buttons at all those 
> places ?
>
> I tried using EnumWindows but running into weird crashes.

You can't add child controls like buttons in other windows owned by other 
processes.  You can create your *own* windows containing buttons and put 
those where ever you like.  If you create them using the topmost style, they 
will remain on top of the other windows.  This sounds like what you want to 
do.

-- David




More information about the Qt-interest-old mailing list