int t; ellipses are acutally circles. //Based on the shape of the window, t is used to ensure the HPEN hpen, hpenOld; HBRUSH hbrush, hbrushOld; RECT dimensions ; //Variable to a structure containing the window dimensions //Get the Current Window Size GetClientRect(hwnd, &dimensions); //Create a Brush hbrush = CreateSolidBrush(RGB(0,0,0)); //Select the brush SelectObject(hdc, hbrush); //Re-Draw the Shadow Points in window w = (dimensions.right-100) / COLUMN; h = dimensions.bottom / ROW; if (w > h) t=h; else t=w; for(m=0; m