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 users login name ?

0 Answers  


How to Check drive ready status?

0 Answers  


Do I have to understand object-oriented programming to use Delphi?

0 Answers  


Explain the methods findfirst, findnext and findclose?

0 Answers  


How to Change the font in a hint window ?

0 Answers  


How to prevent application?s main window from showing when application loads?

0 Answers  


How to Connect via ODBC using Delphi or C++ Builder ?

0 Answers  


How to Change RichEdit Font styles with HotKey combinations ?

0 Answers  


Does Delphi have an equivalent to the Visual Basic SendKeys function?

0 Answers  


What if I do not have a CD-ROM drive?

0 Answers  


Can we create stored procedures via Delphi or C++ Builder?

0 Answers  


How to change Kylix directory permissions for all users when installed as root?

0 Answers  


Categories