I am amking a etch -e-sketch program and want to redraw the window blank when WM_MOVE is called. I read of a function in the windows GDI called RedrawWindow(), would that do it?
This is a discussion on Redrawing window blank within the Windows Programming forums, part of the Platform Specific Boards category; I am amking a etch -e-sketch program and want to redraw the window blank when WM_MOVE is called. I read ...
I am amking a etch -e-sketch program and want to redraw the window blank when WM_MOVE is called. I read of a function in the windows GDI called RedrawWindow(), would that do it?
Give me a bad reputation!!!
Why not use FillRect?
Of course if you don't want to fill the entire client area just define the size/location of your custom RECT yourself instead of using GetClientRect.Code:RECT rcClient; GetClientRect(hwnd,&rcClient); HDC hdc=GetDC(hwnd); FillRect(hdc,&rcClient,(HBRUSH)GetStockObject(BLACK_BRUSH)); ReleaseDC(hwnd,hdc);