VOID CALLBACK EnumObjectsProc(lpLogObject, lpData) | |||
LPVOID lpLogObject; | |||
LPARAM lpData; |
The EnumObjectsProc function is an application defined callback function that processes objects data from the EnumObjects function.
lpLogObject
Points to a LOGPEN or LOGBRUSH structure that contains information about the attributes of the object.
The LOGPEN structure has the following form:
typedef struct tagLOGPEN { /* lgpn */
UINT lopnStyle;
POINT lopnWidth;
COLORREF lopnColor;
} LOGPEN;
The LOGBRUSH structure has the following form:
typedef struct tagLOGBRUSH { /* lb */
UINT lbStyle;
COLORREF lbColor;
LONG lbHatch;
} LOGBRUSH;
lpData
Points to the application-supplied data passed by the EnumObjects function.
This function does not return a value.
An application must register this function by passing its address to the EnumObjects function. EnumObjectsProc is a placeholder for the application-supplied function name. The actual name must be exported by including it in an EXPORTS statement in the application's module-definition file.
FreeProcInstance, GlobalAlloc, GlobalLock, MakeProcInstance