다음을 통해 공유


Callback Function for CDC::EnumObjects

 

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.

Syntax

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

Structures, Styles, Callbacks, and Message Maps
CDC::EnumObjects