Unscruffed
Programmer
Hi guys, gals and inbetweens.
I'm working on a custom ComboBox.
This is what I'm doing...
I removed the border from the Listbox using GetWindowLong and SetWindowLong. Ok.
Using CreateWindowEx, create a window and place the listbox in it. All ok except the background color of the created window is ButtonFace. I need to change this, or draw a rectangle to simulate the custom border color.
I tried catching the WM_PAINT msg for the window, and tried FloodFill and Rectangle, but it draws over the listbox as well.
I know I'm missing something simple, but what?
Thanks,
Scruff.
Be good. If you can't, don't get caught!
I'm working on a custom ComboBox.
This is what I'm doing...
I removed the border from the Listbox using GetWindowLong and SetWindowLong. Ok.
Using CreateWindowEx, create a window and place the listbox in it. All ok except the background color of the created window is ButtonFace. I need to change this, or draw a rectangle to simulate the custom border color.
I tried catching the WM_PAINT msg for the window, and tried FloodFill and Rectangle, but it draws over the listbox as well.
I know I'm missing something simple, but what?
Thanks,
Scruff.
Be good. If you can't, don't get caught!