Catch ICON's from DLLs and use in own Gadgets
Posted: Thu Nov 21, 2002 7:07 pm
Code updated For 5.20+
Restored from previous forum. Originally posted by Rings.
Code is 80% from german 'PCFreak'
Its a long way to the top if you wanna .....CodeGuru
Restored from previous forum. Originally posted by Rings.
Code is 80% from german 'PCFreak'
Code: Select all
SSystemPath.s=Space(255)
Result=GetSystemDirectory_(SystemPath.s,255)
OpenWindow(0,0,0,237,50,"Icon-Test",#PB_Window_SystemMenu|#PB_Window_MinimizeGadget|#PB_Window_ScreenCentered)
If CreateGadgetList(WindowID(0))
For a=0 To 5
ButtonImageGadget(a,10+a*36,10,36,36,ExtractIcon_(0,SystemPath+"\SetupAPI.dll",a))
Next
EndIf
Repeat : Until WindowEvent()=#PB_Event_CloseWindow
End