Hi Stewart,
Access does not expose the On Move event for you to trap the WM_MOVE
message. In addition to subclassing the Window, I recommend that you try
using the events "On Mouse Down" and "On Mouse Up" to judge if your window
was moved. As you have mentioned, you can use the Windows APIs
GetWindowRect and the ScreenToClient to get the window's Top and Left
properties. Compare the values in the mouse up event with those in the
mouse down event. If they are different, it means that your window is
moved, and then you can call your custom function.
Hope this helps. If you have any other questions or concerns, please let us
know.
Best regards,
Charles Wang
Microsoft Online Community Support
=========================================================
Delighting our customers is our #1 priority. We welcome your
comments and suggestions about how we can improve the
support we provide to you. Please feel free to let my manager
know what you think of the level of service provided. You can
send feedback directly to my manager at: (e-mail address removed).
=========================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
=========================================================