AddToDesktop() nativeWindowToAttachTo parameter - SOLVED

I have a JUCE application - standard main/document window with content component, which creates TopLevelWindow and adds it to the desktop. I want this TopLevelWindow to become a child of the main app window, so i have to provide parameter about “nativeWindowToAttachTo” when adding to desktop.

Which method should i use to get proper value for this parameter - i tried main window’s getWindowHandle() with no success.


Solved - just saw this thread addToDesktop - beginner woes