It needs to be pointed out that the item that was selected is not passed as a parameter of the message, and no matter how many complaints were filed when this was noticed, IBM would not change it. There is a solution to this problem, fortunately, but it will not be discussed until we look at ownerdraw listboxes. The next notification is at landmark 10. Unfortunately, there is no good solution to this problem other than to avoid placing yourself in this situation. We will return for the last time when we have looked at buttons, but I suspect that by now you have already figured out the rest of the program.
More Messages Let's look at more of the common messages used by the listbox.
Unlike the entryfield, we will not examine all of the listbox messages, nor all of the messages of any future controls we will look at. This is because, with few exceptions, each control has so many messages that it would quickly become a hinderance to this column's effectiveness. This message is sent to delete an item from the listbox. This message is sent to delete all items from the listbox. I do apologize for the snail's pace being taken in this column, but I do not want to overwhelm anyone by presenting too much information.