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

What is the equivalent in BCB to a Pdox TCursor?

0 Answers  


Hi is there is any tool to debug Delphi ISAPI dlls in borland 2006 framework. AS i am a new to delphi borland i need a detailed description for debugging the web application in delphi as per my analysis the ISAPI dlls calling the htm files please help me ....

0 Answers  


What are the ways to close a modal form?

0 Answers  


How to Align maximized forms?

0 Answers  


How to Use the Application's OnIdle Event?

0 Answers  


How to add system menu items to a form ?

0 Answers  


How to Convert a TColor value to a HTML Color string ?

0 Answers  


Define PRIMARYLANGID(), SUBLANGID(), and MAKELANGID() macros?

0 Answers  


How many tables can be connected with joins in oracle at a time?

0 Answers  


How to Covert string of (zeros and ones) to binary?

0 Answers   Infosys,


How to Change the font in a hint window ?

0 Answers  


How to Create a Lookup field at runtime ?

0 Answers  


Categories