Partager via


BEHAVIOR_LAYOUT_MODE enumeration

Provides a layout behavior with information about the current state of the layout engine.

Syntax

typedef enum _BEHAVIOR_LAYOUT_MODE { 
  BEHAVIORLAYOUTMODE_NATURAL           = 0x0001,
  BEHAVIORLAYOUTMODE_MINWIDTH          = 0x0002,
  BEHAVIORLAYOUTMODE_MAXWIDTH          = 0x0004,
  BEHAVIORLAYOUTMODE_MEDIA_RESOLUTION  = 0x4000,
  BEHAVIORLAYOUTMODE_FINAL_PERCENT     = 0x8000
} BEHAVIOR_LAYOUT_MODE;

Constants

  • BEHAVIORLAYOUTMODE_NATURAL
    The layout engine is requesting the natural size of the element. Both width and height must be returned.

  • BEHAVIORLAYOUTMODE_MINWIDTH
    The layout engine is requesting the element's minimum width requirement.

  • BEHAVIORLAYOUTMODE_MAXWIDTH
    The layout engine is requesting the element's maximum width requirement.

  • BEHAVIORLAYOUTMODE_MEDIA_RESOLUTION
    The layout engine is requesting the element's media resolution.

  • BEHAVIORLAYOUTMODE_FINAL_PERCENT
    This value is used when the layout engine is running through a final pass to layout percent-sized parent elements. This pass happens when a sized-to-content element is forced to change size and has percent-sized child elements that may need to resize themselves to adjust.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Mshtml.h

IDL

Mshtml.idl