TE Edit Control Win32 / Win64 Help
Product page

TerGetDrawObjectInfo

Retrieve information about a drawing object.

BOOL TerGetDrawObjectInfo(hWnd, FrameId, width, height, LineWidth, LineColor, FillColor, flags)
HWND hWnd;The handle of the window to be accessed
int FrameId;The frame id of the drawing object to inquire
LPINT width;The location to received the width (twips) of the text box or the rectangle object
LPINT height;The location to received the height (twips) of the text box or the rectangle object
LPINT LineWidth;The location to receive the line width (twips) of the line object
COLORREF far *LineColor;The location to receive the color of the line object
COLORREF far *FillColor;The location to received the fill color for the text box or the rectangle object
UINT far *flags;The location to receive the object flags:
PARA_FRAME_TEXT_BOX:Indicates a text box
PARA_FRAME_LINE:Indicates a line object
PARA_FRAME_RECT:Indicates a rectangle object
PARA_FRAME_BOXED:The text box or the rectangle object is boxed.
PARA_FRAME_DOOTED:Indicates dotted border

Return Value: This function returns TRUE if successful.