You are not logged in. You can browse in the PowerBASIC Community, but you must click Login (top right) before you can post. If this is your first visit, check out the FAQ or Sign Up.
I used the string identifier to load the icon, because in vc there
was no way I could find a place to set the ID. I presumed that I could
use the string identifier.
But after a look in the resource.h file I found the ID of the icon.
After using this the icon finally showed up.
Anyway thank you for your tips.
------------------
Leave a comment:
Guest replied
Not icon_big but small.
The loadicon call returns 0 so the next line doesn't work at all.
Probably, you used lower-case letters for HOCKEY in .RC ?
Another reason. Win95, RCDATA > 1 Mb
No completely upper case and I use NT4.
Do you
get an application instance handle from GetWindowLong()? Did you
use RC.EXE to create the RES file and then PBRES.EXE to create the
PBR file?
No I used vc to create the res file and after that I used pbres to
create the pbr file. I do get an instance handle back from the
getwindowlong call. By the way I borrowed this icon code from your
poffs program.
------------------
[This message has been edited by Erwin van de Wiel (edited July 27, 2000).]
Tried the same code with a 16x16 icon and it worked fine. Do you
get an application instance handle from GetWindowLong()? Did you
use RC.EXE to create the RES file and then PBRES.EXE to create the
PBR file?
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Leave a comment: