Well, listbox.enableWindow(true) will [red]en[/red]able the window, not [red]dis[/red]able it. You need enableWindow(false) to disable it.
Please define "doesn't work." Do you mean you don't get the new callbacks to redraw the listbox items in a disabled state? If you have a visible scroll bar in the list box, is that disabled when the list box is disabled?
Anyway, I found a solution, I used ODS_DISABLED to check if the item is disable or not, and then manually change the color of item to look like it really is disable. thanks for not ignoring my question.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.