VB 4.0 Calls the FreezeEvents Method to Inform OLE ControlsLast reviewed: October 30, 1995Article ID: Q129733 |
The information in this article applies to:
SUMMARYVisual Basic version 4.0 uses the FreezeEvents method to inform an OLE control of its readiness to accept events at key points during execution.
MORE INFORMATIONThis information is quoted from the OLE Control Developer's Kit, Part 4, Appendix D:
The FreezeEvents method determines whether the control should fire events. When initially created, the control's freeze count is at zero, and the control is free to fire events when appropriate. If the container calls FreezeEvents(TRUE), then the freeze count is incremented, and the control should not fire any events until the freeze count returns to zero by the container calling FreezeEvents(FALSE). This mechanism gives the container a way to suppress events being fired until it is fully ready to deal with them. The control is free to decide whether to discard events triggered when the control is frozen, or to queue them up and fire them when the control becomes unfrozen. Normally, a control makes this decision based on how important the event is to the control's contract. If discarding the event is likely to break users' assumptions and therefore their code, then the control should queue the event.Visual Basic uses the FreezeEvents at the following key points during run time:
|
Additional reference words: 4.00 vb4win vb4all
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |