Thema: Delphi Move taskbar

Einzelnen Beitrag anzeigen

Razor
(Gast)

n/a Beiträge
 
#3

Re: Move taskbar

  Alt 31. Jan 2009, 15:45
Okay i've found a complete solution by myself using my knowledge however,the code is still not perfect.Can anybody tell me how to erase background of a window via his handle.

Btw i need this for a sidebar if anybody is interested why so much stuff.I want icons on my sidebar.


Delphi-Quellcode:
procedure TForm3.Button1Click(Sender: TObject);
var
myhandle:hwnd;
handle2:hwnd;
handle3:hwnd;
begin



myhandle:=FindWindowEx(FindWindow('shell_traywnd', nil), 0, 'traynotifywnd', nil) ;
if myhandle>0 then begin
windows.SetParent(myhandle,0);
MoveWindow(myhandle,0, -9,TaskBarwidth(myhandle), TaskBarheight(myhandle), true)
       end
   else
showmessage('wont work handle is zero');
end;
Miniaturansicht angehängter Grafiken
untitled_554.jpg  
  Mit Zitat antworten Zitat