Interview Questions

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

Delphi Interview Questions


(Continued from previous question...)

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

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.

(Continued on next question...)

Other Interview Questions