Richard Bram wrote:
> 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.

Never assume!  And RTFS -- Read The Fantastic Source.  :-)

> I wonder if I should test for a non-zero listPtr->drawItemsCallback,
> and if so, then skip the call to LstGetSelectionText......

That should work, but note there is no "official" API to fetch it so
unfortunately you need to peek directly into the ListType object.

-slj-

Reply via email to