TerSetObjectAttrib
Set the drawing object attributes.
BOOL TerSetObjectAttrib(hWnd,ObjectId, LineType, LineThickness, LineColor, FillSolid, FillColor)
BOOL TerSetObjectAttribEx(hWnd,ObjectId, LineType, LineThickness, LineColor, FillSolid, FillColor, ZOrder)
HWND hWnd; | The handle of the window to be accessed |
int ObjectId; | id of the drawing object. Set to -1, to display the user selection dialog box. This dialog box is displayed only if the cursor is positioned on a drawing object. |
int LineType; | Border line type: |
DOB_LINE_NONE: | No border |
DOB_LINE_SOLID: | Solid border line |
DOB_LINE_DOTTED: | Dotted border line |
int LineThickness; | Border line thickness in twips. |
COLORREF LineColor; | Border line color |
BOOL FillSolid; | TRUE to fill the background, FALSE to leave the text box transparent. This option is available for a text box type drawing object only. |
COLORREF FillColor; | Background color for the drawing object. |
int ZOrder; | Z Order for the object. Set to -9999 to leave this value unchanged. |
Return Value: This function returns TRUE when successful.