Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create window with custom background color

Status
Not open for further replies.

Unscruffed

Programmer
Apr 2, 2002
102
AU
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!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top