Notifications
Clear all

[Closed] Viewoirt TOP-LEFT and BOTTOM-RIGHT pos

Please tell me how to find TOP-LEFT and BOTTOM-RIGHT screen pos of max viewport (doesn’t matter one maximized or all together), if even Max window is “restored down” (not full screen)

2 Replies

windows.getChildrenHWND #max
gives you a list of max’s child-windows

one of them has a classname = “ViewPanel”
that’s the one you want

get its’ HWND from the list, then get the screencoords for this hwnd

search in mxs-help for “Windows Structure” for more info…

Wonderful, with your help I found the solution by DenisT

http://forums.cgsociety.org/showpost.php?p=7581594&postcount=17

Thank you, Thomas!

Denis, you are a treasure!!! Thank you.