VXPLib Documentation: COM

IVXPQuickHTML::RecalculateLayout

Recalculates dimensions of the new document set by the last call to SetSourceText, and draws it into memory for speed optimization when function Draw is called. Read the Remarks section for details.

HRESULT RecalculateLayout(VARIANT_BOOL * bSuccess);

Parameters
bSuccess [out, retval] - Return value: True, if the function succeeded, or False otherwise.
Remarks
This function runs the parser to process QHTML contents as set by the latest call of method SetSourceText.
When called the parser updates properties Width, Height, HasBackgroundPicture and all settings properties.

When a new contents is set by method SetSourceText the following will cause automatic invocation of method RecalculateLayout:
The parser conducts analysis of QHTML in the following steps:
  • Fires event OnRecalculate with the first parameter set True;
  • Splits text contents into tag objects querying for dynamic contents where necessary;
  • Calculates the size of the resulting document (properties Width and Height), and sets all dependant properties
  • If property Transparent is False creates a bitmap in memory where it draws the document to optimize method Draw to display the document with the utmost speed possible.
  • Fires event OnRecalculate with the first parameter set to False;
See Also
IVXPQuickHTML Overview


This document was last updated on 15/05/2003
Copyright © 2003 Tooltips.NET