Hi everyone,
I'm looking for the lower left position of a given button on a Word
vba form as mouse coordinates (not the .left/.top properties!) so that
the following code fragment could work:
Call GetWindowRect(myHWND, Rec)
SetCursorPos Rec.Left, Rec.Top
First challenge could be to get the button's window handle. Maybe it
doesn't have one (though listboxes do have) as I found out until now.
Anyone got a nice idea?
Thanx, Lorenz
Andra - 28 Dec 2004 09:33 GMT
for Word2000 vba forms it seems buttons are painted. ListBox, MultiPage may
be only exception.
> Hi everyone,
>
[quoted text clipped - 11 lines]
>
> Thanx, Lorenz
Word Heretic - 28 Dec 2004 11:18 GMT
G'day internet@software-dozent.de (Lorenz H?lscher),
The VBA Developer's Handbook has some stuff on HWnd tricks.
Steve Hudson - Word Heretic
steve from wordheretic.com (Email replies require payment)
Without prejudice
Lorenz H?lscher reckoned:
>Hi everyone,
>
[quoted text clipped - 11 lines]
>
>Thanx, Lorenz