TPU ChatChat on IRC
Internet Relay Chat?
Java Applet client
Who's on IRC?
Filling a Window in Win32 using C
Posted by Mycroft [send private reply] at September 01, 2002, 08:04:56 PM I am using FillRect(hdc,&windowRect,(HBRUSH)GetStockObject(BLACK_BRUSH));, but this limits my color filling to different levels of grays. I want to use the rgb() macro if possible to select the color to fill the window. So what is the best way to fill a window with a specific color using the Win32 API?
Posted by taubz [send private reply] at September 01, 2002, 10:21:45 PM I think you have to create your own brush.
Posted by CViper [send private reply] at September 02, 2002, 02:47:29 AM
HBRUSH myBrush = CreateSolidBrush( RGB( <whatever>, <whatever>, <whatever> ) );
Register as a new user