I want to hide this info bar.
I saw this topic viewtopic.php?p=156719&hilit=hide+infobar#p156719
and tried the related code, but I got stuck

Code: Select all
var list = new List<string>();
IntPtr pChild = IntPtr.Zero;
Type type = typeof(PDFXEdit.IUIX_ScrollContainer);
Editor.Inst.MainFrm[0].View.Obj.Children[0].QueryImpl(type.GUID, null, out pChild);
if (pChild != IntPtr.Zero) {
PDFXEdit.IUIX_ScrollContainer scrollCon = (PDFXEdit.IUIX_ScrollContainer)System.Runtime.InteropServices.Marshal.GetTypedObjectForIUnknown(pChild, type);
if (scrollCon != null) {
if (scrollCon.CmdPaneTop.Count != 0) {
PDFXEdit.IUIX_CmdLine cmdLine = scrollCon.CmdPaneTop[0];
for (uint i = 0; i < cmdLine.Count; i++) {
PDFXEdit.IUIX_CmdBar bar = cmdLine[i];
string sID = Editor.Inst.ID2Str(bar.ID);
list.Add(sID);
}
}
}
}
Where is the red bar really located in the structure?
When debugging there is no CmdPaneTop in in the ScrollContainer, so I assume that possibly the ScrollContainer is not the right place to start the whole search process?
I tried several different values I found during debugging, but I came to the conclusion, that it is no good way to do so, when I don’t know what I’m doing ☹
best regards
Stephan