I have developed a useful little PB Listbox class which manages a n-column Listbox containing only text. To obtain data in response to the wm_drawitem message, one of the class's methods calls a user-written function using an address supplied via a property, and receives a data string result. This works satisfactorily.
However, when this class is instantiated inside another class, the calling convention for a non-class proc is not appropriate for calling a method in the "owner class", which is where the data source belongs.
How should I pass the address of the appropriate method of the "owner" interface to the Listbox object? Don't want to pass the interface, because then the Listbox class code would have to be changed whenever it is called from a new class.
Thanks of thinking for me!