示例#1
0
        override public void doIt(MArgList args)
        {
            // Create the window to dock
            wnd = new FormMainMaya();
            wnd.Show();

            // Extract the window handle of the window we want to dock
            // IntPtr mWindowHandle = new System.Windows.Interop.WindowInteropHelper(wnd).Handle;

            IntPtr mWindowHandle = wnd.Handle;

            // Dock it in Maya using the docking station
            mI = new MDockingStation(mWindowHandle, true, MDockingStation.BottomDock | MDockingStation.TopDock, MDockingStation.BottomDock);
        }
示例#2
0
        override public void doIt(MArgList args)
        {
            // Create the window to dock
            wnd = new FormMainMaya();
            wnd.Show();

            // Extract the window handle of the window we want to dock
           // IntPtr mWindowHandle = new System.Windows.Interop.WindowInteropHelper(wnd).Handle;

           IntPtr mWindowHandle = wnd.Handle;

            // Dock it in Maya using the docking station
            mI = new MDockingStation(mWindowHandle, true, MDockingStation.BottomDock | MDockingStation.TopDock, MDockingStation.BottomDock);
        }