Guest_imported
New member
- Jan 1, 1970
- 0
I have a single-selection listbox in a dialog. When an item in that listbox is selected, various buttons in the dialog are enabled. One of those buttons gives the user the option to delete the selected item. My problem is that when I delete an item in the listbox I obviously now have no items selected but my buttons remained enabled.
I thought that the system would have generated a LBN_SELCHANGE message when the delete happens thereby allowing me to disable the buttons, but it doesn’t. I’ve tried posting a LBN_SELCHANGE message to the listbox but that doesn’t work.
How do I indicate to my program that there has been a change in my listbox?
Thanks.
I thought that the system would have generated a LBN_SELCHANGE message when the delete happens thereby allowing me to disable the buttons, but it doesn’t. I’ve tried posting a LBN_SELCHANGE message to the listbox but that doesn’t work.
How do I indicate to my program that there has been a change in my listbox?
Thanks.