2012-12-04 254 views
4

我有一箇舊的應用程序,有沒有一種快速的方式來獲得應用程序的整容而不會改變太多的代碼? 一些MFC模擬器?C++ Visual Studio 6 MFC應用程序

+2

如果它是一個GUI應用程序,看起來四四方方和3-d,嘗試添加清單文件,以使用爲主題的控制。該應用程序將直接看起來很現代 – cha

回答

0
1)Create a file <yourapplication><.exe>.manifest 

2)Paste the file in the same path as your exe 

3)Paste the following content inside the manifest file 

<?xml version="1.0" encoding="UTF-8" standalone="yes"?> 
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> 
<assemblyIdentity 
    version="" 
    processorArchitecture="" 
    name="" 
    type="" 
/> 
<description></description> 
<dependency> 
    <dependentAssembly> 
     <assemblyIdentity 
      type="win32" 
      name="Microsoft.MSXML2" 
      version="" 
      processorArchitecture="X86" 
      publicKeyToken="" 
      language="*" 
     /> 
    </dependentAssembly> 
</dependency> 
</assembly> 

4) Launch the exe.. 
+0

嗯....我沒有注意到任何變化。我應該期待什麼? –

0

很難通過閱讀你模糊的問題來實現你假裝做什麼。

如果您想要使用更現代化的Visual Studio版本,只需在該版本上打開該版本,即可啓動解決方案轉換向導。

如果您想要一些眼睛糖果,請查看功能包。它有像Dockable Panes,Ribbon bars等很好的控件,可以爲你的應用程序提供更現代的外觀。

如果要更改表單背景,只需閱讀WM_CTL_COLOR和OnCtlColor文檔並覆蓋默認行爲。

而且這個名單可以通過無限繼續下去......

相關問題