WindowMovedOrResized Event

Triggered just after the application or drawing window has been moved or resized.

See Also | Example

Signature

object.WindowMovedOrResized(HWNDFrame, Moved)

object

Application object, Document object
An object expression that evaluates to a valid container object. In this case, the only valid containers are the application and a document.

HWNDFrame

Long; input to the handler
The application or document window frame.

Moved

Boolean; input to the handler

TRUE: The window was moved.

FALSE: The window was resized.

Remarks

This event is helpful when implementing toolbars or modeless dialog boxes that track with the application or document window. The VB or ObjectARX application can use the HWNDFrame parameter to get the coordinates of the window, convert those coordinates to either screen or parent coordinates, and use this information to position other windows.

No events will be fired while a modal dialog is being displayed.

 

   Comments?