Jump to content

_GUIImageList_AddIcon not supported on 2000?


 Share

Recommended Posts

i have this

$compileSmall = _GUIImageList_Create(16, 16, 5, 5, 6)
_GUIImageList_AddIcon($compileSmall, @AppDataDir & "\selfburner\resource.dll", 0)
$exitSmall = _GUIImageList_Create(16, 16, 5, 5, 6)
_GUIImageList_AddIcon($exitSmall, @AppDataDir & "\selfburner\resource.dll", 1)
$aboutSmall = _GUIImageList_Create(16, 16, 5, 5, 6)
_GUIImageList_AddIcon($aboutSmall, @AppDataDir & "\selfburner\resource.dll", 2)
$okSmall = _GUIImageList_Create(16, 16, 5, 5, 6)
_GUIImageList_AddIcon($okSmall, @AppDataDir & "\selfburner\resource.dll", 3)
$optionsSmall = _GUIImageList_Create(16, 16, 5, 5, 6)
_GUIImageList_AddIcon($optionsSmall, @AppDataDir & "\selfburner\resource.dll", 4)
$openSmall = _GUIImageList_Create(16, 16, 5, 5, 6)
_GUIImageList_AddIcon($openSmall, @AppDataDir & "\selfburner\resource.dll", 5)

;then the gui..

_GUICtrlButton_SetImageList($Button1, $exitSmall)
_GUICtrlButton_SetImageList($Button2, $optionsSmall)
_GUICtrlButton_SetImageList($Button3, $aboutSmall)
_GUICtrlButton_SetImageList($Button4, $openSmall)
_GUICtrlButton_SetImageList($Button5, $openSmall)
_GUICtrlButton_SetImageList($Button6, $compileSmall)

and it works great on XP, but it throws a error on the second icon...

any ideas?

Damian666

and proud of it!!!
Link to comment
Share on other sites

so no one knows how to fix this, if its fixable at all?

i really need help here guys... :D

Damian666

ExtractIconEx appears to be the culprit, and a google of this resulted in others having the same problem with no solution.

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

hmm, then thats it...

anyway thanx for replying gary.

i have to come up with somethnig else then.

to bad, it looked cool :D

oh well...

Damian666

If I get time I'll look into maybe replacing the extract with LoadIcon and see if that works.

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...