tags:

views:

18

answers:

0

I am able to re-order my list box items using a mouse. I am only using one listbox. The dialog has few combo boxes and other stuff too, so listbox is a child control of that Dialog.For example I can drag and drop or move item5 to the 2nd position in the list or anywhere using my mouse. However when I do that, I want my grid to get updated, the moment I finish performing that operation. That is the moment the item5 goes to the second position, my grid should also get updated. I have tried using LBN_SELCHANGE, but it gets called before the listbox items reset to a new state, so the grid doesn't get updated to the new state although the listbox shows the re-ordering once the function ends. I see when it gets called the listbox is still in its old state, and once it finishes then the change of state occurs. Actually none of the LBN functions are helpful in this case. I have tried using all of them. I cant find any notification message function that shows the new list box state, that I can use to update my grid at the same moment as the list items move to a new position. Any ideas on this will be appreciated. Thanks.