Delphi Programming Question:

Download Job Interview Questions and Answers PDF

What should I give to Windows API functions that want a hWnd?

Delphi Interview Question
Delphi Interview Question

Answer:

Each form has a property called Handle, which contains the form's hWnd. Many controls also have hWnd properties. However, don't try to pass Canvas.Handle to an API function expecting a hWnd, because TCanvas's Handle property is a hDC, not a hWnd.

Download Delphi Interview Questions And Answers PDF

Previous QuestionNext Question
What is Delphi?Why do I get exception messages even though I am in protected code?