flat assembler
Message board for the users of flat assembler.
Index
> Windows > Icon resources? |
Author |
|
Enko 29 Aug 2011, 15:45
Yes you can use an icon resource:
Quote:
where my.res have the icon resources with a valid ID. Then use LoadIcon(hInstance, INT_RESOURCE_ID) |
|||
29 Aug 2011, 15:45 |
|
rohagymeg 29 Aug 2011, 15:54
Ok, I'll try that. But which program should I use? I used resedit, but I didn't see any id there and I didn't know how to give an id number to the icons. So how should I make a res file and does it matter what id number I give to them? 401 or 333, does it have a rule?
|
|||
29 Aug 2011, 15:54 |
|
Enko 29 Aug 2011, 17:04
RightButton on the added icon resource >> Rename >> Ordinal Identifier >> Wirte a Number.
There is no rule for resources, but mostly for your benefit, the name is somehow sequential. 501 icon1 502 icon2 503 icon4 400 dlg1 401 dlg2 Or any other number you like. I had some problems with programs like ResEdit, ResEd, nx resource editor, etc... most of the time, I prefer to use them to made a scratch of the resource, than finally edit it manually and compile the resource using RC.EXE (Microsoft resource compiler which comes with masm32 it will requeire windows.h to understand the constants) |
|||
29 Aug 2011, 17:04 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.