This routine is interesting ...
code:
If Exist("%WINDIR%\System32\dsuiext.dll")
$imgList.Images.Add("dsuiext.dll;1") $c=64
$imgList.Images.Add("dsuiext.dll;7") $g=65
$imgList.Images.Add("dsuiext.dll;12") $u=66
$imgList.Images.Add("dsuiext.dll;13") $o=67
$imgList.Images.Add("dsquery.dll;0")
$frmMain.Icon = $imgList.Images(68)
Else
$c=53 $g=35 $u=34 $o=50
EndIf
And I already know, that Chris knows, that as soon as the next batch of icons get added to the library, that this code will not work as expected. Going to add something in the next build that will fix this situation forever. The ImageList.Images.Add() function will return the index number of the added icon, so the above code becomes ...
code:
If Exist("%WINDIR%\System32\dsuiext.dll")
$c = $imgList.Images.Add("dsuiext.dll;1")
$g = $imgList.Images.Add("dsuiext.dll;7")
$u = $imgList.Images.Add("dsuiext.dll;12")
$o = $imgList.Images.Add("dsuiext.dll;13")
$f = $imgList.Images.Add("dsquery.dll;0")
$frmMain.Icon = $imgList.Images($f)
Else
$c=53 $g=35 $u=34 $o=50
EndIf
-Shawn
[ 19. June 2003, 14:23: Message edited by: Shawn ]