qertks.blogg.se

Purebasic gadgets
Purebasic gadgets






purebasic gadgets

PNG." + Chr ( 13 )+ Chr ( 13 )+ "Code: Teddy Rogers" + Chr ( 13 )+ "URL: " + Chr ( 13 )+ "E-Mail: Create our window and explorer list gadget then let the magic happen. s = "A small program to view and extract icons as. s = "Quick Icon Viewer v0.1" Global Info. Declare Menu_ExtractIcon () Declare Menu_ExtractIconAll () Declare Menu_About () Declare Menu_Callback ( hWnd, uMsg, wParam, lParam ) Declare some global variables. UsePNGImageEncoder () Declare the procedures. pb code file(s) and some rough bonus code using DrawIconEx API to draw icons directly to a window.

#Purebasic gadgets archive

The attached archive contains compiled code for those who would like to see use the end result and do not have PureBasic installed (shame on you!). For those of you who have read my previous blog entries may be astute enough to see the similarities with the code posted in my PureBasic Adventures blog entry. As you can see from the code below I have taken advantage of mixing both Windows API with PureBasic API's to achieve the results.

purebasic gadgets

Most of the magic is done by Windows API ExtractIconEx function and from there we simply manipulate the icon images to display them in a gadget list window. I coded a small tool for this a while ago that enabled me to quickly view icons contained primarily within shell32.dll and imageres.dll so that I could take advantage of those icons in other code. This blog entry is in regard to a recent query from viewing icons contained within DLL's, executables, icon files, etc. With the excitement of Windows 10 and a host of bug fixes out of the way I can now concentrate some time on Tuts 4 You which also allows me to post some code on this blog. This is a repost from the "PureBasic Adventures" blog.








Purebasic gadgets