It seems the maximize event fires at that moment the user clicks the maximize button.
I wonder anyhow how I could get notified when a window has been completely maximized?
In other words: I’m looking for a “Window-Zooming-Completed” event.
The Resized event fires once at the end of the resizing. So when the user maximizes a window, you get the following events:
Maximize
Resizing
Resizing
Resizing
...
Resizing
Resized
So if you need to know if a Resized event happens only after Maximinize, but not after Minimize or Restore set a flag (a boolean property in the window) and inspect it in the Resized event.
[code]Class MyWindow
Property mMaximizeFlag As Boolean
Event Maximize()
mMaximizeFlag = True
End
Event Resized()
If mMaximizeFlag Then
mMaximizeFlag = False
// Maximizing has finished
Else
// Minimizing or restoring has finished
End
End