Contents Up Previous Next

Windows-specific files

wxWidgets application compilation under MS Windows requires at least one extra file: a resource file.

Resource file

Resource file

The least that must be defined in the Windows resource file (extension RC) is the following statement:

#include "wx/msw/wx.rc"
which includes essential internal wxWidgets definitions. The resource script may also contain references to icons, cursors, etc., for example:

wxicon icon wx.ico
The icon can then be referenced by name when creating a frame icon. See the MS Windows SDK documentation.

Note: include wx.rc after any ICON statements so programs that search your executable for icons (such as the Program Manager) find your application icon first.