>Do you first verify that the list even _has_ any text before calling
>LstGetSelectionText? If it's the kind of list that uses a draw
>callback function and leaves the text pointer null (or stuffs some
>cookie value in there) then LstGetSelectionText will crash.
>
>Basically for a custom drawn list like that, there is no way for your
>hack to retrieve item text, since the program that owns the list
>supplies the text in a proprietary way at draw time. (One could even
>draw pictures in the list instead of text.)
Well, that would be fine. I don't need to get the text, if there isn't
any there. But how can my hack determine whether there is a custom
menuitem draw routine, in order to know to not call LstGetSelText?
I had assumed, incorrectly, that the OS would simply return zero
in that case, instead of just crashing.
I wonder if I should test for a non-zero listPtr->drawItemsCallback,
and if so, then skip the call to LstGetSelectionText......
thanks for the info
Rick