wxWidgets在windows下如果使用MinGW编译程序,如果没有加rc文件的话,编译出的程序会是win9x风格,十分不美观。要想使用xp风格(或vista、win7风格),需要创建一个.rc文件,内容只需一行:
#include " wx/msw/wx.rc "
使用方法是通过MinGW的windres程序:
windres `wx-config . exe --rcflags` yourres . rc yourres . o
wxWidgets在windows下如果使用MinGW编译程序,如果没有加rc文件的话,编译出的程序会是win9x风格,十分不美观。要想使用xp风格(或vista、win7风格),需要创建一个.rc文件,内容只需一行:
#include " wx/msw/wx.rc "
使用方法是通过MinGW的windres程序:
windres `wx-config . exe --rcflags` yourres . rc yourres . o