When my opengl app goes full screen and then goes back, it leaves the rest of the screen black. Is there someway to make the entire desktop update and redraw itself?
Posted on 2002-09-22 02:12:56 by ChimpFace9000
Two ways, take look in the win32.hlp for the complete explation if these APIs:

Win32.hlp:
BOOL RedrawWindow(
HWND hWnd, // handle of window
CONST RECT *lprcUpdate, // address of structure with update rectangle
HRGN hrgnUpdate, // handle of update region
UINT flags // array of redraw flags
);


Parameters
hWnd
Identifies the window to be redrawn. If this parameter is NULL, the desktop window is updated.
...

This clearly redraws the desktop.

Win32.hlp:
InvalidateRect(
HWND hWnd, // handle of window with changed update region
CONST RECT *lpRect, // address of rectangle coordinates
BOOL bErase // erase-background flag
);

Parameters
hWnd
Identifies the window whose update region has changed. If this parameter is NULL, Windows invalidates and redraws all windows, and sends the WM_ERASEBKGND and WM_NCPAINT messages to the window procedure before the function returns.
...

This could update the desktop (IIRC it's a window too.)
Posted on 2002-09-22 03:07:50 by scientica