My application has a standard top level window for the application. I need to force a repaint of the window chrome (otherwise known as the non-client area of the window). I do not care if the client area is also repainted or not but the chrome itself needs to be forced to repaint.
In particular I need this to work on Windows 7. Whether it works on other OS versions does not matter in my particular case. The solution can be C, C++, C# or any other language.