09-18-2006 10:38 PM
09-19-2006 01:50 AM
AFAIK a listbox does not maintain highlighting when it's not the active control. Instead, a dotted box surrounds the active item when not active.
A possible solution to this could be to trap EVENT_GOT_FOCUS and EVENT_LOST_FOCUS in the listbox callback: when loosing focus get the active item and replace it with the same text adding a proper combination of backgroun / foreground colors, when getting focus, replace again it with the normal black/white colors. The background color will encompass only the printed text: if you want to highlight the whole line you'll need to add extra spaces to item text. For help on using colors in a listbox look at \samples\userint\listdelx example.
09-20-2006 09:51 PM