2009-06-24 54 views
1

所以我試圖重新編譯應用程序來添加一些次要功能。一切都很好,除了一件事。在應用程序中禁用Vista風格的控件

舊版本具有所有windows-vista風格的對話框按鈕。在邊角圓潤,單選按鈕的外觀不同,等等

Example

如何把這些東西嗎?我希望它看起來/像原來的感覺。

編輯:如果有人知道如何使圖片嵌入內嵌,去爲它...我無法得到它。

+0

什麼編譯器和你使用的是什麼版本的Windows SDK? – 2009-06-24 17:57:35

回答

2

看來你的版本有經典的窗口風格(不是Vista)。要使用Vista的風格,如「他們的版本」檢查標頭某處有下面的代碼:

#ifdef _UNICODE 
#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 
#endif 

如果代碼是存在的(我認爲它應該有),你應該檢查你所編譯的UNICODE版本(定義了_UNICODE)。

有關啓用Vista Common Controls的更多詳細信息,請參閱MSDN Article