Hello, I'm trying to add a docking pane and a shortcut bar in the docking pane on a Win32 dialog. I can add the docking pane and create a pane. But when I'm trying to add the shortcut bar in my pane... Nothing happens. Any help, suggestion, solution will be really appreciated. Here the relevant code (translated to c#) : // Create and initialize the docking pane // The docking pane and the panes are correctly display on the win32 dialog this.dockingPane = new AxDockingPane(); this.dockingPane.CreateControl(); this.dockingPane.AttachToWindow((int)this.Handle()); this.dockingPane.SetCommandBars(this.commandBars.GetDispatch()); // Create our left and 2 right panes - works ok this.paneFuncsLib = this.dockingPane.CreatePane(AntiguaVODefines.PKL_DP_FUNCSLIB_ID, 300, 500, DockingDirection.DockLeftOf); this.paneScheduler = this.dockingPane.CreatePane(AntiguaVODefines.PKL_DP_SCHEDULER_ID, 300, 500, DockingDirection.DockRightOf); this.paneTipDay = this.dockingPane.CreatePane(AntiguaVODefines.PKL_DP_TIPDAY_ID, 300, 500, DockingDirection.DockRightOf); // Create and initialize the shortcut bar this.shortcutBarFuncsLib = new AxShortcutBar(); this.shortcutBarFuncsLib.CreateControl(); // Create one of our Win32 form that SHOULD be displayed in the shortcutbar this.funcsLibFolders = new FuncsLibFolders(this, nullValue); hWnd = (int)this.funcsLibFolders.Handle(); // Add a shortcut bar item and bind it to the form this.shortcutBarItemFolders = this.shortcutBarFuncsLib.AddItem(AntiguaVODefines.PKL_SCB_FOLDERS_ID, "Caption", hWnd); this.shortcutBarItemFolders.IconId = PKLClassesDefines.PKL_ICO_DOSSIERS_ID; // here we add several other panes the same way -> add item, hwnd // try to show the shortcutbar, this doesn't work this.shortcutBarFuncsLib.Show(); // try to assign the shortcut bar to the pane on left -> doesn't work but for other pane that doesn't contains shortcut bar // but contains Win32 dialog, docking pane and pane are working ok this.paneFuncsLib.SetHandle(this.shortcutBarFuncsLib.hWnd);
|