Saved Bookmarks
| 1. |
What Should I Give To Windows Api Functions That Want A Hwnd? |
|
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. 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. |
|