[wxWidgets] Add an icon from .ico file

Posted on Dec 21, 2014

YourApp.rc

mondrian ICON "mondrian.ico" // identifier ICON filename

#include "wx/msw/wx.rc"

YourApp.cpp

// In the constructor,
MyDialog::MyDialog(wxWindow* parent)
{
	...

	SetIcon(wxICON(mondrian)); // the same identifier that you put in the rc file
}