: No sir, still no clear....I'm just not getting it.
Perhaps you need to look into the GDI objects first. I do not know much about it, so I can't help you with it.
Handle to the device context for the list box.
Handle to the list box.
wParam holds the DC (often named hDC in API's). It's like the 'graphics handle' of the Listbox. You pass this handle to GDI functions so that the functions know where to draw on. Also, the DC 'object' holds a lot of information on how things are drawn.
lParam is the handle to the listbox. This is the same value as ListBox1.Handle (or .hWnd?).
If an application processes this message, it must return a handle to a
brush. The system uses the brush to paint the background of the list
I guess the brush is used to set the background color.
Also note what is said at remarks:
The system does not automatically destroy the returned brush.
It is the application's responsibility to destroy the brush when
it is no longer needed.
Meaning you'll probably want to make the brush a global object in your application that you intialize when the app starts and you destroy when the app shuts down.
Now as to set the ForeColor, I guess you need to use the appropriate GDI functions on the DC object to change the font color.
Good luck, and if you need any help, you know where to find it