RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TThemeServices.ContentRect Method

Returns the rectangle of the background area of a themed control.

Pascal
function ContentRect(DC: HDC; Details: TThemedElementDetails; BoundingRect: TRect): TRect;
C++
__fastcall TRect ContentRect(HDC DC, TThemedElementDetails Details, TRect BoundingRect);

Call ContentRect to retrieve the rectangle that contains the background area of a control in a themed environment. ContentRect expects a TThemedElementDetails parameter that describes the user interface element from which the informations is being retrieved. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!