Monday, June 26, 2006

MFC List Box

Inserting a list element at the end and wanted the list to show the item just put in. But it would not in its default behavior.

I could not find how to do this searching on the net. Had to dig through existing code. Even than what I tried did not work. The problem was with using LPSTR_TEXTCALLBACK and than trying to calling the EnsureVisible function. These things are mutually exclusive.

I had to send a message so that the function was called after the text callback functions had finished what they were doing.

No comments: