我正在尝试将一个动态GIF图像嵌入到wxWidgets C++程序中。我可以从文件中加载该图像并像这样显示:
wxAnimationCtrl *an = new wxAnimationCtrl(this, wxID_ANY, wxAnimation(wxT("image.gif"), wxANIMATION_TYPE_ANY), wxPoint(150,0));
an->Play();
但我更希望将GIF图像放在我的resource.rc文件中,这样它就会被编译到可执行文件中。我该怎么做呢?