Das mache ich alles nach PostQuitMessage.
Danke.
Delphi-Quellcode:
// Windows Messagen verarbeiten
while GetMessage(Msg, 0, 0, 0) do
begin
if IsDialogMessage(MainHandle, Msg) = false then
begin
TranslateMessage(Msg);
DispatchMessage(Msg);
end;
end;
KillTimer(MainHandle, 1);
// Menu Resource freigeben
GDIP_DisposeImage(ImgBack);
GDIP_DisposeImage(ImgHover);
GDIP_DisposeImage(SideBarImg);
if hNotifyRBin > 0 then
SHChangeNotifyDeregister(MainHandle);
CreateIcon.ShowDesktopIcons(True);
for X := 0 to Sprites.Count - 1 do
begin
if Sprites[X].h_Bitmap <> 0 then
begin
DeleteObject(Sprites[X].h_Bitmap);
Sprites[X].h_Bitmap := 0;
end;
end;
Sprites.Free;
FreeAndNil(CreateIcon);
FreeAndNil(DockBar);
FreeAndNil(ShortCut);
SKAERO_Free;
gruss