Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to draw directly on the Windows Desktop?

Answer Posted / srinivas

Through some API functions like

To draw a text

Handle := GetDesktopWindow;
Dc := GetWindowDC(Handle) ;
ACanvas := TCanvas.Create;
try
ACanvas.Handle := DC;
BeginPath(ACanvas.Handle) ;
ACanvas.Font.Color := clRed;
ACanvas.Font.Name := 'Tahoma';
ACanvas.Font.Size := 30;
SetBkMode(ACanvas.Handle, TRANSPARENT) ;
EndPath(ACanvas.Handle) ;
ACanvas.TextOut(0, 0, TextToDraw) ;
finally
ReleaseDC(Handle, ACanvas.Handle) ;
ACanvas.Free;
end;

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to Change the display mode settings in code?

1821


What are the reasons involved in using the interface?

766


How to display an application associated icons?

1665


How to retrieve an InterBase Blob in Delphi using SavetoFile?

1778


How to Change the printer setup between pages?

1874


What is the target load order?

2306


How to Determine if a combobox is in dropped state?

1731


How to Disable ALT-F4 to prevent form closing

4502


'Memo too large' error with MSSQL . What does this error indicates?

1655


How to Initialize an array or record to null?

1994


what are the uses of Arrow and Function Keys ?

2197


How do we get access to a database from Delphi?

917


How to Generate a Windows Console Application?

1941


How does Delphi handle Windows callbacks?

1031


How to place a bitmap in a Metafile?

1735