Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / December 2004

Tip: Looking for answers? Try searching our database.

hWnd for a button

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lorenz H?lscher - 26 Dec 2004 19:44 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.