API GetWindowRect

B

BrerGoose

When using GetWindowRect with Application.hWndAccessApp, the coordinates
returned are of the main window.

However, when I use GetWindowRect with a child form such as frmChild.hWnd,
how are the coordinates returned ? Are they offset from the main window, or
absolute from the desktop ?

The reason is, I want to use the return values in a MoveSize command.
 
D

Dirk Goldgar

BrerGoose said:
When using GetWindowRect with Application.hWndAccessApp, the coordinates
returned are of the main window.

However, when I use GetWindowRect with a child form such as frmChild.hWnd,
how are the coordinates returned ? Are they offset from the main window,
or
absolute from the desktop ?

The reason is, I want to use the return values in a MoveSize command.


I don't know the answer to your question, but I wonder if you might find
Nicole Calinoiu's clFormWindows class helpful for whatever you're doing:

http://www.mvps.org/access/forms/frm0042.htm
Forms: Move and Resize form windows from code
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top