TThemeServices.GetDetailSizeForWindow function
Gets the dimensions for a theme element on the control with the specified window handle.
Declaration
function GetDetailSizeForWindow(Details: TThemedElementDetails;
const AWindow: HWND): TSize; virtualArguments
Details | Identifies the element, part, and state for the requested themed element. |
AWindow | The window handle for the control where the theme element size is used. |
Function result
TSize instance with the Width and Height for the specified theme element detail.
Description
Gets the default dimensions for the specified theme element detail. Calls
GetDetailSizeForPPI to get the return value for the method. -1 in the Width
and Height for the TSize instance means the size for the theme
element detail is not known.
The handle specified in AWindow is not used is the LCL implementation of the
method. It is provided for compatibility with widgetset implementations which
use the handle for DPI-aware contexts (Windows).
Added in LCL version 3.0.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
