Background color of CDialog and all the controls in that dialog is white instead of gray
===

I'm migrating code from VS 2005 to VS 2010. I am facing a strange problem.. Few dialogs (which are derived from CDialog) when invoked is seen with white background and all of the controls have the white background too. I've tried a lot to find the cause but unable to. Please can someone suggest a way to get rid of this issue.