Thema: Delphi Canvas und der Desktop

Einzelnen Beitrag anzeigen

Benutzerbild von chaosben
chaosben

Registriert seit: 27. Apr 2005
Ort: Görlitz
1.358 Beiträge
 
Delphi XE2 Professional
 
#5

Re: Canvas und der Desktop

  Alt 2. Jan 2007, 13: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)
  Mit Zitat antworten Zitat