Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Using IVsUIShellOpenDocument.OpenSpecificEditor with (_VSRDTFLAGS.RDT_DontAutoOpen | _VSRDTFLAGS.RDT_NonCreatable)

$
0
0

Hi,

I am writing a custom project system using MPFProj. 

My project has several properties pages that are displayed within the standard ProjectDesignerDocument.

If the properties page is open when the containing solution is closed, then that window state is remembered and the frame is reopened when the solution is reopened.

Unfortunately, when the solution is reopened and the frame is created, not all our project services are ready to use. Ideally, I would fix this to make sure all services are ready, but unfortunately some are listening for the AfterSolutionLoaded event which occurs after the frame has been created.

I would like to prevent the shell from reopening the project designer by settings _VSRDTFLAGS.RDT_DontAutoOpen when I create the properties page originally. This doesn't seem to work and the shell seems to ignore this value.

The snippet that is used to load the designer is:

ErrorHandler.ThrowOnFailure(uiShellOpenDocument.OpenSpecificEditor((uint)(_VSRDTFLAGS.RDT_DontAutoOpen | _VSRDTFLAGS.RDT_NonCreatable), fullPath, ref editorType, physicalView, ref logicalView, caption, parentHierarchy, (uint)parentHierarchyItemId, docDataExisting, serviceProvider, out frame));

Is this expected behaviour or am I calling the open incorrectly and not specifying the DontAutoOpen flag in the wrong way?

Thanks,

Kevin


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>