Hello,
Previously I have been using SetWindowLongPtr to change the owner of the window, and it works fine. However, I recently had to move everything to 32bit since I had to use 32bit DLLs. After switching to 32bit JVM the SetWindowLongPtr fails with error: "java.lang.UnsatisfiedLinkError: Error looking up function 'SetWindowLongPtr': The specified procedure could not be found.", which is kind of understandable. From MSDN: "When compiling for 32-bit Windows, SetWindowLongPtr is defined as a call to the
SetWindowLong function." So I should just use SetWindowLong function instead.
Now to the actual problem... If I could previously do
SetWindowLongPtr(childHwnd, WinUser.GWL_HWNDPARENT, parentHwnd.getPointer());
Then what would the equivalent line be for SetWindowLong function?
SetWindowLong(childHwnd, WinUser.GWL_HWNDPARENT, ???)
The 3rd parameter has to be Integer?! It should be so simple, yet I am clueless.
Kind regards,
Lennart