Microsoft Visual Studio 2010 Ultimate Full Version

In addition of the post of "Jan Goyvaerts":I use SendMessage instead of PostMessage. The difference is that SendMessage waits for the command to be taken in by the window. Meaning that in the SendMessages returns, you know that the theme dialog is closed.