MinMaxWindow Event

Applies to:  CbtEvents object
See also:  Window object

Occurs when a window is about to be minimized or maximized.

Syntax:

Public Event CreateWindow(ByRef Window As Window, ByVal State As WindowStateConstants, ByRef Cancel As Boolean)

The CreateWindow event syntax has these parts:

Part Description
object The name of a CbtEvents object.  NB:  object must be declared using WithEvents.
Window The window about to be minimized or maximized.
State The operation which is about to occur.  Can be any one of the following values:
SW_MAXIMIZE - the window is about to be maximized.
SW_MINIMIZE - the window is about to be minimized.
Cancel A boolean value that determines whether the minimize or maximize will proceed.  Setting Cancel to True prevents the minimization or maximization from occurring.

 

Home Copyright and Disclaimer