Exemplo n.º 1
0
        public void LoadInst(IPXV_Inst inst)
        {
            Inst = inst;

            IUIX_Inst uiInst = (IUIX_Inst)Inst.GetExtension("UIX");
            Rectangle rcCl   = ClientRectangle;
            tagRECT   rc;

            rc.left   = rcCl.Left;
            rc.top    = rcCl.Top;
            rc.right  = rcCl.Right;
            rc.bottom = rcCl.Bottom;

            UIX_CreateObjParams cp = new UIX_CreateObjParams();

            cp.nStdClass  = (int)UIX_StdClasses.UIX_StdClass_Blank;
            cp.hWndParent = (uint)Handle.ToInt32();
            cp.rc         = rc;
            parentBase    = uiInst.CreateObj(ref cp);

            pagesPreviewCtl = Inst.CreatePagesPreviewCtl(parentBase, rc, "ctrl.01",
                                                         (long)PXV_PagesPreviewStyleFlags.PXV_PagesPreviewStyle_NoHandTool | (long)PXV_PagesPreviewStyleFlags.PXV_PagesPreviewStyle_NonInertialHand | (long)PXV_PagesPreviewStyleFlags.PXV_PagesPreviewStyle_InteractiveLayout,
                                                         (long)UIX_ScrollStyleFlags.UIX_ScrollStyle_Horz | (long)UIX_ScrollStyleFlags.UIX_ScrollStyle_Vert);
        }