Registriert seit: 27. Apr 2005
Ort: Görlitz
1.358 Beiträge
Delphi XE2 Professional
|
Re: Canvas und der Desktop
2. Jan 2007, 14:42
Quick and Dirty um auf den "Desktop" zu malen:
Delphi-Quellcode:
var
h : HWND;
c : TCanvas;
begin
h:=FindWindow('Progman',nil);
h:=FindWindowEx(h,0,'SHELLDLL_DefView',nil);
h:=FindWindowEx(h,0,'SysListView32',nil);
c:=TCanvas.Create;
c.Handle:=GetDc(h);
c.Pen.Color:=clRed;
c.TextOut(10,10,'HehOsdffsdfsdsdf');
end;
Benjamin Schwarze If I have seen further it is by standing on the shoulders of Giants. (Isaac Newton)
|
|
Zitat
|