Share via


LM_GETIDEALSIZE (Compact 2013)

3/28/2014

This message retrieves the ideal size of a Syslink control, height and width, for a specified maximum width.

Parameters

  • hWnd
    [in] Handle to the window whose window procedure will receive the message.
  • Msg
    [in] LM_GETIDEALSIZE.
  • wParam
    [in] cxMaxWidth, an integer representing the maximum width of the link, in pixels.
  • lParam
    [out] Points to a SIZE structure, which on return indicates the ideal size for the control for the specified maximum width. The cy member of this structure indicates the ideal height of the control for the given width. The cx member indicates the width actually needed.

Return Values

Returns an integer that represents the preferred height of the link text, in pixels.

Remarks

This message is sent with the SendMessage function.

Requirements

Header

commctrl.h

See Also

Reference

SysLink Controls Messages