The first problem I see is that your line
InitCommonControls( );should be in a function. Here it is hanging in cyberspace and will never be called.
For instance, call that function when your window...