Esempio n. 1
0
        public unsafe void SetDockState(int n)
        {
            ICUIFrame *icuiFramePtr1 = (ICUIFrame *)*(long *)((IntPtr)this.mHandler + 96L);

            if ((IntPtr)icuiFramePtr1 == IntPtr.Zero)
            {
                return;
            }
            ICUIFrame *icuiFramePtr2 = icuiFramePtr1;

            // ISSUE: cast to a function pointer type
            // ISSUE: function pointer call
            if ((int)__calli((__FnPtr <uint (IntPtr)>) * (long *)(*(long *)icuiFramePtr2 + 144L))((IntPtr)icuiFramePtr2) == n)
            {
                return;
            }
            if ((n & 15) != 0)
            {
                \u003CModule\u003E.CUIFrameMgr\u002EDockCUIWindow((CUIFrameMgr *)\u003CModule\u003E.GetCUIFrameMgrEx(), (HWND__ *)*(long *)((IntPtr)this.mHandler + 40L), n, (tagRECT *)0L, 0);
                \u003CModule\u003E.CUIFrameMgr\u002ERecalcLayout((CUIFrameMgr *)\u003CModule\u003E.GetCUIFrameMgrEx(), 1);
            }
            else
            {
                \u003CModule\u003E.CUIFrameMgr\u002EFloatCUIWindow((CUIFrameMgr *)\u003CModule\u003E.GetCUIFrameMgrEx(), (HWND__ *)*(long *)((IntPtr)this.mHandler + 40L), (tagRECT *)0L, 0);
            }
            ICUIFrame *icuiFramePtr3 = icuiFramePtr1;
            int        num           = n;

            // ISSUE: cast to a function pointer type
            // ISSUE: function pointer call
            __calli((__FnPtr <void (IntPtr, uint)>) * (long *)(*(long *)icuiFramePtr1 + 136L))((uint)icuiFramePtr3, (IntPtr)num);
        }
Esempio n. 2
0
        public unsafe int GetDockState()
        {
            WinFormsCUIHandler *winFormsCuiHandlerPtr = this.mHandler;

            if ((IntPtr)winFormsCuiHandlerPtr == IntPtr.Zero)
            {
                return(16);
            }
            ICUIFrame *icuiFramePtr1 = (ICUIFrame *)*(long *)((IntPtr)winFormsCuiHandlerPtr + 96L);

            if ((IntPtr)icuiFramePtr1 == IntPtr.Zero)
            {
                return(16);
            }
            ICUIFrame *icuiFramePtr2 = icuiFramePtr1;

            // ISSUE: cast to a function pointer type
            // ISSUE: function pointer call
            return((int)__calli((__FnPtr <uint (IntPtr)>) * (long *)(*(long *)icuiFramePtr2 + 144L))((IntPtr)icuiFramePtr2));
        }