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?



How to draw directly on the Windows Desktop?..

Answer / 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

More Delphi Interview Questions

How to retrieve a list of assigned properties ?

0 Answers  


How to Declare a SafeArray in the type library editor?

0 Answers  


How to Place a grid in edit mode programatically?

0 Answers  


How to Send a file via DCOM ?

0 Answers  


How to set the default form font in Delphi?

0 Answers   Reliance,


How to Use Visual Basic arrays in Delphi ?

0 Answers  


How to get serial number of my drive ?

0 Answers  


How to Implement the VB TwipsPerPixel in Delphi ?

0 Answers  


Explain the MasterSource/MasterFields behavior?

0 Answers  


How to Change the default width/height of the editor?

0 Answers  


How to create a console application in Kylix?

0 Answers  


How to Change the display mode settings in code?

0 Answers  


Categories