I'm trying to force a ToolWindow into the right docking area without success using :
windowFrame.SetFramePos(VSSETFRAMEPOS.SFP_fDockRight, ref viewGuid, 0, 0, 0, 0);
But I found out on MSDN that SFP_fDockRight, SFP_fDockLeft and SFP_fDockRight are now obsolete. MSDN doesn't says what to use instead.
I know we can use the registry to specify the ToolWindow's initial position but I need to do it every time in the code. I'm also interested to know if there's a way to do it using Add-ins.
thanks.