Exemplo n.º 1
0
        protected void EnableVirtualGroups()
        {
            if (this.ownerDataCallbackImpl == null)
            {
                this.ownerDataCallbackImpl = new OwnerDataCallbackImpl(this);
            }
            IntPtr comInterfaceForObject = Marshal.GetComInterfaceForObject(this.ownerDataCallbackImpl, typeof(IOwnerDataCallback));
            IntPtr ptr2 = BrightIdeasSoftware.NativeMethods.SendMessage(base.Handle, 0x10bb, comInterfaceForObject, 0);

            Marshal.Release(comInterfaceForObject);
            Debug.WriteLine(BrightIdeasSoftware.NativeMethods.SendMessage(base.Handle, 0x109d, 1, 0));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Do the plumbing to enable groups on a virtual list
        /// </summary>
        protected void EnableVirtualGroups()
        {
            // We need to implement the IOwnerDataCallback interface
            if (ownerDataCallbackImpl == null)
            {
                ownerDataCallbackImpl = new OwnerDataCallbackImpl(this);
            }

            const int LVM_SETOWNERDATACALLBACK = 0x10BB;
            IntPtr    ptr = Marshal.GetComInterfaceForObject(ownerDataCallbackImpl, typeof(IOwnerDataCallback));
            IntPtr    x   = NativeMethods.SendMessage(Handle, LVM_SETOWNERDATACALLBACK, ptr, 0);

            //System.Diagnostics.Debug.WriteLine(x);
            Marshal.Release(ptr);

            const int LVM_ENABLEGROUPVIEW = 0x1000 + 157;

            x = NativeMethods.SendMessage(Handle, LVM_ENABLEGROUPVIEW, 1, 0);
            //System.Diagnostics.Debug.WriteLine(x);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Do the plumbing to enable groups on a virtual list
        /// </summary>
        protected void EnableVirtualGroups()
        {
            // We need to implement the IOwnerDataCallback interface
            if (this.ownerDataCallbackImpl == null)
                this.ownerDataCallbackImpl = new OwnerDataCallbackImpl(this);

            const int LVM_SETOWNERDATACALLBACK = 0x10BB;
            IntPtr ptr = Marshal.GetComInterfaceForObject(ownerDataCallbackImpl, typeof(IOwnerDataCallback));
            IntPtr x = NativeMethods.SendMessage(this.Handle, LVM_SETOWNERDATACALLBACK, ptr, 0);
            //System.Diagnostics.Debug.WriteLine(x);
            Marshal.Release(ptr);

            const int LVM_ENABLEGROUPVIEW = 0x1000 + 157;
            x = NativeMethods.SendMessage(this.Handle, LVM_ENABLEGROUPVIEW, 1, 0);
            //System.Diagnostics.Debug.WriteLine(x);
        }