Partager via


Callback Function for CDC::EnumObjects

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.

Return Value

The callback function returns an int. The value of this return is user-defined. If the callback function returns 0, EnumObjects stops enumeration early.

Remarks

The actual name must be exported.

Requirements

Header: afxwin.h

See Also

Reference

CDC::EnumObjects

Other Resources

Structures, Styles, Callbacks, and Message Maps