title: MFC controls hide on Windows 7 basic theme
body: <p>Can anyone please tell me why MFC applications are not displaying correctly in Windows 7 basic theme ? </p>
  
  <p>EDIT: Is there anyone who can guess the problem ? </p>
  
  <p>EDIT: </p>
  
  <ul>
  <li>Im using vs2008 (same version is used to create this app). </li>
  <li>This particular window is DLL based.For creating that DLL I added these in the Stdafx.h</li>
  </ul>
  
  <p>.</p>
  
  <pre><code>#if defined _M_IX86
  #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
  #elif defined _M_IA64
  #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"")
  #elif defined _M_X64
  #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"")
  #else
  #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
  #endif
  </code></pre>
  
  <ul>
  <li>This problem occurs only in this window.</li>
  <li>This window is based on CDialog, inside OnInitDialog() I'm doing these,</li>
  </ul>
  
  <p>.</p>
  
  <pre><code>CDialog::OnInitDialog();
  AfxInitRichEdit();
  // And Create three more child windows.
  </code></pre>
  
  <ul>
  <li>This is how it displayed in basic theme.</li>
  </ul>
  
  <p><img src="https://i.stack.imgur.com/TBhsG.png" alt="enter image description here"></p>
  
  <p>But, it is working nicely when I changed to Windows Aero theme.</p>
  
  <p><img src="https://i.stack.imgur.com/icAYt.png" alt="enter image description here">
  What should be the solution ? </p>
  
  <p>EDIT: Anyone please ? </p>