Closed HuguesDug closed 6 years ago
@HuguesDug
I've read all your post about issues, would you share all your .pas codes that you've made changes?
what about a link that we can download those files you've changed?
thanks in advance.
I will... not this evening, busy, but next week-end.
@blaisexen
Here is an upload link: http://dl.free.fr/ne4ff3NGO
thanks,, I will try it :dancer:
@blaisexen You can see that there is only the core fil that is modified. The over request for modification that I raised were sorted out by the team. Only the last ones are open.
Ok, I think I understand that, thank you
In the OpenCV documentation, the cvGetWindowHandle function is defined as void cvGetWindowHandle (const char name) (https://docs.opencv.org/3.3.0/d0/d28/group__highgui__c.html#gac5a54cd8b8ce9c58273904eaacfe831d)
Then there were two ways
While I adhere to the documentation
What about using a compiler directive so that if "windows target" it returns an appropriate windows type ? It would not hurt the futur nor break compatibility.
Hello folks,
Yet another type that is incorrectly translated in ocv.highGUI_c
The type returned by cvGetWindowHandle is an handle to a window (hwnd), not a pointer.
And by the way (but I think this is internal opencv issue) it is not the window handle, it is the drawing control handle. If you want to remove the "title bar" with Windows API, you have to get the parent of this handle to really gain the handle of the window.
Regards
Hugues
356 {$IFDEF SAFELOADLIB} 357
358 type 359 TcvGetWindowHandle = function(const name: pCvChar): Pointer; cdecl; 360
361 var 362 cvGetWindowHandle: TcvGetWindowHandle; 363 {$ELSE} 364 function cvGetWindowHandle(const name: pCvChar): Pointer; cdecl; 365 {$ENDIF}