![]() |
Anzeige:
|
|
|||||||
| XProfan Alles rund um die Programmiersprache XProfan. |
|
![]() |
|
|
LinkBack | Themen-Optionen | Ansicht |
|
|
#1 (Direktlink) |
|
Super-Moderator
![]() Registriert seit: 05.02.2009
Ort: Westliches NRW
Alter: 44
Beiträge: 5.094
|
Testcode zeigt alle Exe-Icons (des Systemordners) hochauflösend an (ab XProfan 8):
Code:
Declare ilist&,reg&,x&,y&,z&,text$,bereich#,button&,static&,a&
Dim bereich#,356
Def ImageList_Create(5) !"comctl32.dll","ImageList_Create"
Def ImageList_AddIcon(2) !"comctl32.dll","ImageList_AddIcon"
Def ImageList_Draw(6) !"comctl32.dll","ImageList_Draw"
Def SHGetFileInfo(5) !"shell32.dll","SHGetFileInfo"
Def GetSystemMetrics(1) !"user32","GetSystemMetrics"
Proc GetExeIcon
If text$<>""
z&=SHGetFileInfo(addr(text$),0,bereich#,352,$101)
If z&
ImageList_AddIcon(ilist&,Long(bereich#,0))
ImageList_Draw(ilist&,a&,%hdc,x&,y&,0)
ImageList_Draw(ilist&,a&,%hdc2,x&,y&,0) 'Falls die Anzeige auf dem Haupt-Fenster permanent sein soll!
a&=a&+1
EndIf
EndIf
EndProc
WindowTitle "Alle Exe-Icons (des Systemordners) hochauflösend anzeigen."
Window 0,0-%maxx,%maxy
Usefont "MS Sans Serif",10,0,0,0,0
SetDialogFont 1
ilist&=ImageList_Create(GetSystemMetrics(49),GetSystemMetrics(50),33,0,0)
ChDir $Syspath
x&=20
y&=0
text$=FindFirst$("*.EXE")
DrawText x&+GetSystemMetrics(49)+4,y&,text$
GetExeIcon
y&=y&+18
WhileNot %IOResult
text$=FindNext$()
If (y&>=(%maxy-20))
y&=0
x&=x&+120
Endif
DrawText x&+GetSystemMetrics(49)+4,y&,text$
GetExeIcon
y&=y&+18
EndWhile
WaitInput
Dispose bereich#
End
__________________
Gruß, Frank ![]() Webpage http://frabbing.bplaced.net mit Freeware - Tools, Spiele und Grafiken. |
|
|
|
|
![]() |
|
| Lesezeichen |
| Stichworte |
| anzeigen, exe-datei, hochauflösend, icons |
| Themen-Optionen | |
| Ansicht | |
|
|
Ähnliche Themen
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| Startmenue - Eigene Bilder - statt Icons die Bilder anzeigen | buffie375 | Windows XP | 3 | 17.01.2008 14:43 |
| Icons | [BC]ICE | Allgemein | 2 | 14.03.2006 18:32 |
| Icons | ismael | Windows XP | 5 | 26.06.2005 09:41 |
| Favoriten-Icons im IE 6 dauerhaft anzeigen?! | pommesfrittes | Office-Anwendungen | 4 | 07.03.2005 17:35 |
| Icons für IE 6 ? | Susi | Office-Anwendungen | 4 | 24.01.2004 20:29 |