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 Create a palette with more than one entry ?

0 Answers   Wipro,


How to Get a handle on your files ?

0 Answers  


How to Detect if the system time has been changed ?

0 Answers  


How to create SQL queries with SQL Builder?

0 Answers  


How to Create Non-Visual Components Without Icons ?

0 Answers  


With what commands you can Delete a directory and all the directories with files?

0 Answers  


What are the Color reduction techniques for graphics?

0 Answers  


How to Change the main form of an application at runtime ?

0 Answers  


what are the Differences between Create(Self) and Create(Application)?

0 Answers  


How to Get user name and company info from Windows?

1 Answers  


How to Change font color on standard win controls?

0 Answers   Wipro,


How to access more than one table with the QuickRep component?

0 Answers  


Categories