im trying to put one in the dialog window somewhere:
this code: ICON "myIcon",500,20,10,20,20,SS_SUNKEN | WS_BORDER
brings up a bordered area for the icon but no icon inside it
500 is the resouce ID of the icon defined at the top of the resouce =
file:
500 ICON MOVEABLE PURE LOADONCALL DISCARDABLE =
"C:/DEV-C++/Icon/Documentation.ico"
It works if you replace 500 with a string.
For example, i just tried this:
// replaced 500 with myicon
myicon ICON MOVEABLE PURE LOADONCALL DISCARDABLE =
"C:/DEV-C++/Icon/Documentation.ico"
and then later
// the first parameter is the name of the icon resource, as above
// the second parameter can be set to any ID, I set it to -1
// width, height and style are ignored for ICON controls
ICON "myicon",-1,20,10
I found this by reading the msdn docs about resource scripts, if you =
didn't know about them, maybe they can be helpful to you.
http://msdn.microsoft.com/library/default.asp?URL=3D/library/psdk/winui/r=
c_35rn.htm
I didn't see any info about using numbers instead of strings, but it's =
probably not that important to use a number.
hope this helps,
Elias Pschernig
|