Ok, I have figured out what you meant now. However I can not find a way to
call the EnumWindowsProc function. I found sample code which said to declare
the function like this
Declare Function EnumWindows Lib "user32" (ByVal lpEnumFunc As Integer,
ByVal lParam As Integer) As Integer
This fails when i call it with
retval = EnumWindows(AddressOf EnumWindowsProc, 0)
The error provided is because Integer is not a delegate type. I have tried
to fiddle around with delegates but to no luck. I'm fairly sure that I can
get the rest to work after this function is being called correctly. Sorry to
be such a hassle.
Kind regards,
David Pendrey
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:Ou**************@tk2msftngp13.phx.gbl...
"David Pendrey" <fa*******@dodo.com.au> schrieb: but it seems to need a window identifier. I need to be able to find the
location of every window currently open. Does this mean I have to iterate
through every possible window ID or is there another API for doing this?
As I already said in my previous post, you can enumerate windows (window
handles) by suing the 'EnumWindows' function with a callback.
'EnumWindows' Function
<URL:http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/enumwindows.asp>
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>