Callback Function for CDC::EnumObjects
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at Visual Studio 2017 Documentation. The ObjectFunc name is a placeholder for the application-supplied function name.
int CALLBACK EXPORT ObjectFunc(
LPSTR lpszLogObject,
LPSTR* lpData);
Parameters
lpszLogObject
Points to a LOGPEN or LOGBRUSH data structure that contains information about the logical attributes of the object.
lpData
Points to the application-supplied data passed to the EnumObjects function.
The callback function returns an int. The value of this return is user-defined. If the callback function returns 0, EnumObjects stops enumeration early.
The actual name must be exported.
Header: afxwin.h
Structures, Styles, Callbacks, and Message Maps
CDC::EnumObjects