VC中實現介面XP風格

2021-05-24 06:37:56 字數 955 閱讀 7536

只需要在stdafx.h裡加入如下語句:

#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

vc中實現xp風格介面

關於讓自己的程式介面實現xp風格這個問題,在網上的討論很多,大多數的作法都是寫乙個.manifest檔案,然後將檔名改一下,比如.exe檔案為test.exe,就將這個.manifest檔案改名成test.exe.manifest,並將其和test.exe放在同乙個目錄裡,這樣test.exe在xp...

VC實現xp風格

1 24 xpstyle.manifest 下面檔案其實是乙個xml檔案,開啟記事本,複製上面的內容,然後存檔,檔名任意,這裡我存為xpstyle.manifest。name xp style manifest processorarchitecture x86 version 1.0.0.0 ty...

VC 實現XP風格

要在你的應用程式中實現xp風格,你要做的第一件事情是建立乙個manifest檔案 其實是乙個xml檔案 下面列出了 新建乙個文字檔案,然後儲存為xpstyle.manifest。這裡我們放在res資料夾中,也可以放在編譯目錄下。我們要做的就是把它整合到資源檔案中,這樣編譯後生成.res檔案,link...