Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Color changing using resources (win 32 & c)

Help.....

I'm using a resource defined dialog box in my program (some buttons and
a list box). No problem invoking it, installing a DialogProc function, retrieving
messages, etc. Is there any way to change the background and text color of
the list box? (I've tried getting the dc to the listbox, selecting a color
brush into it and drawing a rect, but no avail) Also, how can I make the
list box capable of supplying drag/drop files (when left mouse button is
held and cursor is taken away from the window, the focus remains, changing
the selection as you move the mouse up and down)
I'm programming straight c. Anyone?

- Adam -
[693 byte] By [sloth] at [2007-11-10 12:51:57]