Pointer to an owner-draw function for a Details View field.

This function would be used if you wanted to draw the contents of the Details View field yourself, for example, as a graphic image or to use custom formatting.

This function is called each time the field is painted.

typedef FNOWNDRW *PFNOWNDRW;

The first argument (HWND) is the handle of the Details View field-window being painted. The second argument (PVOID) is a pointer to an OWNERITEM data structure. The third argument (PVOID) is a pointer to the Comparison value to draw (this argument is NULL except when this function is painting its value into the Include Criteria Dialog (in the Settings notebook), in which case it points to a string containing a comparision value. The function returns a BOOL value of TRUE if the field was owner-drawn or FALSE if the container control should do default painting.

In the header file, this is a two-part definition as shown below:

typedef BOOL (EXPENTRY FNOWNDRW)(HWND, PVOID, PVOID);
typedef FNOWNDRW *PFNOWNDRW;


[Back] [Next]