| 131 | |
| 132 | == Creating an icon for your applications == |
| 133 | |
| 134 | (The following instructions, for Windows, are from Bernd Machenschalk): |
| 135 | |
| 136 | * make Icons (honestly I don't remember much about this - I vaguely remember there was a tool for this in Visual Studio), say "boincAppIcon16x16.ico", "boincAppIcon32x32.ico" and "boincAppIcon48x48.ico". |
| 137 | |
| 138 | * create a simple resource description file "boincAppIcon.rc" in the same directory as the icon files pointing to the icon filenames, the first entry is the resource name that is later passed to setWinIcon(): |
| 139 | {{{ |
| 140 | boinca16 ICON boincAppIcon16x16.ico |
| 141 | boinca32 ICON boincAppIcon32x32.ico |
| 142 | boinca48 ICON boincAppIcon48x48.ico |
| 143 | }}} |
| 144 | * compile the resource (I do this on a Visual Studio Command Prompt): |
| 145 | {{{ |
| 146 | rc.exe boincAppIcon.rc |
| 147 | }}} |
| 148 | * when linking the App, add the resulting file boincAppIcon.RES to the objects |
| 149 | |
| 150 | * we call setWinIcon("boinca16","boinca48") in app_graphics_init() |
| 151 | |