int EnumObjects(hdc, nObjectType, lpObjectFunc, lParam) | |||
HDC hdc; | |||
int nObjectType; | |||
GOBJENUMPROC lpObjectFunc; | |||
LPARAM lParam; |
The EnumObjects function enumerates the pens and brushes available for a device context. For each object of the given type, the callback function is called with the information for that object. The callback function is called until there are no more objects or the callback function returns zero.
hdc
Identifies the device context.
nObjectType
Specifies the object type. It can be one of the following values:
OBJ_BRUSH OBJ_PEN
lpObjectFunc
The address of the application supplied callback function. For more information about the callback function, see the description of the EnumObjectsProc callback function.
lParam
Points to the application-supplied data. The data is passed to the callback function along with the object information.
The return value specifies the last value returned by the callback function. Its meaning is user-defined. ERROR will be returned if an error occurred.
GetObject