SetDefaultColor

  Functions >

SetDefaultColor

Previous pageReturn to chapter overviewNext page

The SetDefaultColor function sets color of pens and brushes specified by the user.

 

Syntax:

 

int SetDefaultColor(

  HANDLE hObject,

  Color ADefaultColor

);

 

 

Parameters:

 

hObject

Identifies the CADImage object handle

ADefaultColor

Sets the color of pens and brushes for drawing the CAD drawing object specified by hObject.

 

 

Return Value:

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastErrorCAD.

 

Note:

If  the SetBlackWhite function is called with the CMode parameter equal to 1, the CAD drawing object specified by hObject is drawn with the color defined by the SetDefaultColor function.

 

 

See Also

CADCreate  | SetCADLayerColor


© 2003-2021 CADSoftTools

Go to CAD DLL