Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Change Window Icon(SetClassLong) no error just not working.

Author
Message
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 10th Apr 2009 01:53
Here's the Code:



anyhelp?

New Site! Check it out \/
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 10th Apr 2009 03:13
Make sure the icon is 32 x 32 and 16 colors. Also, identify your constants so you know what flags you are applying. Very helpful for when you look at your code in the future and wonder what the heck you were doing in the past.

And why after all the talk about LoadImage have you decided to use LoadIcon ? LoadIcon loads directly from a module (app, exe) so it needs the hinstance of the module.

try:



Enjoy your day.
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 10th Apr 2009 06:33
OH! 32x32! i was thinking 16x16! i'm dumb sorry


and the reason it was loadicon was when i wrote this i didn't have access to the internet and i couldn't remember all the paramaters to loadimage so i just used that and forgot. sorry lol

thanks!

New Site! Check it out \/

Login to post a reply

Server time is: 2025-08-08 20:42:37
Your offset time is: 2025-08-08 20:42:37