> It just would make a lot more sense to assign a pointer to 
> function or a pointer to member to each list item.

You could get the pointer to a STATIC member function instead if that
helps. If you need data from the object, then you'll have to somehow
store a "this" pointer somewhere and do the following trick:

class CMyClass
{
public:
        static void CallBack(void* pThis)
        {
                ((CMyClass*)pThis)->RealCallBack();
        };
        void RealCallBack()
        {
                // do the real work here.
        };

This only works if you have a good place to store the class pointer.
Perhaps in the same class that contains your control? Or do the
different items in your list go to different objects?



_______________________________________________
msvc mailing list
[EMAIL PROTECTED]
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription 
changes, and list archive.

Reply via email to