I have made a little connect 4 game. the board is 7 x 6 which i just used 42childwindows in a single array. the problem is that i cannot seem to set the initial color of the child windows to yellow. When a spot is click i have no problem redrawing the child window with the background yellow and the coin colored red or yellow. Any suggestion is appreciated. Thanks in advance.
Things i have tried:
(inside child window procedure)
SetClassLong(hwndChild, GCL_HBRBACKGROUND, (LONG) CreateSolidBrush(RGB(255,255,0));
also i tried creating a yellow brush and setting the child's window class background to the yellow brush;
wc.hbrgrnd = (HBRUSH) yellow_brush;