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 create a power function?

2020


How to Hide the windows taskbar?

1999


How to Print a WEB page with the HTML control?

1955


How to Display the first frame of an AVI File ?

1668


How to use sets in code, such as adding to TDBGrid.Options, at run time?

2397


How to Use FindFirst to search for files?

1637


'Trying to append data to a non-partial dataset' . what does this error indicates?

4218


How do abstract classes differ from interfaces?

913


How to Run 16-bit Delphi on Windows NT4?

1670


How to Change the display mode settings in code?

1821


How to Resize StringGrid Columns ?

3182


How to convert a color to a shade of gray?

1850


How to Creat a flashing icon ?

1811


How to Switch between different data sources?

1980


How to Set Up a C++ Builder or Delphi Form to View InterBase Data?

1576