|
-
Aug 30th, 2000, 04:24 PM
#1
Thread Starter
Frenzied Member
Ok, I found this source code at vbfrood ( http://perso.wanadoo.fr/vbfrood/english/ ) a while ago, and still can't seem to figure out how he did it.
The problem is that it has ONLY 1 LINE OF CODE, and IT'S IN GERMAN!
My guess is that it's a warning about something to do with API Guide or something... but I'm sure it's nothing really crucial to understand the program.
Can some of you experts comment it out a bit and send it to me? I'd really appreciate it. I need it because it appears that it lets me get the coordinates and size of the window that is at a certain position... and I have this secret project I'm working on that requires exactly that!
Thanks!
Bye,
-Jotaf98
[email protected] - ICQ#60784495 - http://jotaf98.cjb.net
-
Aug 30th, 2000, 04:38 PM
#2
Monday Morning Lunatic
Code:
Dim hWndWindow as Long
Dim lpPoint as POINT
Dim lpRect as RECT
GetCursorPos lPoint
hWndWindow = WindowFromPoint(lPoint.x, lPoint.y)
GetWindowRect hWndWindow, lpRect
lpRect now contains the coordinates of the window where the mouse is over.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Aug 30th, 2000, 04:45 PM
#3
Thread Starter
Frenzied Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|