How can I cause a complete redraw of all windows, nested windows and client areas ?
I need this for an application that runs in fullscreen and windowed mode. When it returns from fullscreen to windowed mode, only some of the others applications windows are redrawn and none of their client areas.
I've searched the board and found these functions:
InvalidateRect(HWND_BROADCAST, NULL, FALSE);
SendMessage(HWND_BROADCAST, WM_SETTINGCHANGE, 0, 0);
The first method (invalidate and update) only redraws the titlebars for some reason, the other method redraws a few elements like a windows' menu and quickbars, but it's extremely slow and doesn't redraw all of the window (the renderer-area in a browser or the editor component of DEV C++ etc). I could probably speed this up by posting the message instead of sending it, but right now, not even sending it works properly.
Is there anyone who can give me a little hint (or two) ?