ooDialog has the connectDraw() method to connect the WM_DRAWITEM notification.
However, the event handler for this connection is not sent the proper arguments for the programmer to be able to take advantage of the connection. The operating system sends a pointer to a DRAWITEMSTRUCT. This struct contains the information needed to properly do owner draw.
Currently the event handler is just sent the numeric value of the pointer. Instead, the event handler should be sent the values within the struct as Rexx objects.