Forum: Win32/Win64 API (native code)
Delphi
by Mystic,
16. Mai 2006
.Add(b, nil) schätze ich, jedenfalls solange Masked false ist.
Forum: Win32/Win64 API (native code)
Delphi
by Mystic,
16. Mai 2006
Entweder du schneidest sie vorher aus oder du löschst alle unbrauchbaren Images aus der Imagelist.
Forum: Win32/Win64 API (native code)
Delphi
by Mystic,
16. Mai 2006
Hab was gefunden:
Run the following procedure *before* adding any icons to the image list (add Consts and CommCtrl units to the uses clause; also add XP manifest to your project):procedure ConvertTo32BitImageList(const ImageList: TImageList);
const
Mask: array of Longint = (0, ILC_MASK);
var
TempList: TImageList;
begin
if Assigned(ImageList) then
begin
Forum: Win32/Win64 API (native code)
Delphi
by Mystic,
16. Mai 2006
Keine Ahnung. Aber ich würde mal probieren, den Alphakanal in ein zweites Bitmap (Graustufen) zu kopieren und dies als Maske für das Original zu nehmen. Dann müsstest du das Bitmap und die Maske zur ImageList (Masked true) per ImageList.Add(bitmap, maske) hinzufügen können.
Forum: Win32/Win64 API (native code)
Delphi
by Mystic,
16. Mai 2006
Die Bitmaps sind 32bit-Bitmaps (Alphakanal!), die jeweils 45 Icons nebeneinander beinhalten.
Forum: Win32/Win64 API (native code)
Delphi
by Mystic,
16. Mai 2006
Nicht Icons, Bitmaps ;)
var
h: HMODULE;
b: TBitmap;
b := TBitmap.Create;
try
h := LoadLibrary('shell32.dll');
Forum: Win32/Win64 API (native code)
Delphi
by Mystic,
16. Mai 2006
Ich hab sie...
shell32.dll
32x32 Normal: Bitmap 215
32x32 Hover: Bitmap 214
16x16 Normal: Bitmap 217
16x16 Hover: Bitmap 216
Forum: Win32/Win64 API (native code)
Delphi
by Mystic,
16. Mai 2006
Die View-Konstante ist für die View-Bilder.
VIEW_DETAILS Specifies the view details image.
VIEW_LARGEICONS Specifies the view large icons image.
VIEW_LIST Specifies the view list image.
VIEW_SMALLICONS Specifies the view small icons image.
VIEW_SORTDATE Specifies the sort by date image.
VIEW_SORTNAME Specifies the sort by name image.
VIEW_SORTSIZE Specifies the sort by size...
Forum: Win32/Win64 API (native code)
Delphi
by Mystic,
16. Mai 2006
Ach ja, der Explorer hat ja auch noch die Toolbar-Icons...
Forum: Win32/Win64 API (native code)
Delphi
by Mystic,
16. Mai 2006
Oops, stimmt. :oops:
Die Icons die du suchst Martin gibt es nur in 16 Farben (siehe z.B. wordpad.exe).
Icons mit mehr Farben musst du von einer anderen Quelle beziehen. GlyFX hat ein nettes kostenloses "Common Toolbar Set".
Forum: Win32/Win64 API (native code)
Delphi
by Mystic,
16. Mai 2006
Also ich extrahier die Icons so:
uses
ShellApi;
var
h: HICON;
hi: TIcon;