Try handling WM_NCHITTEST in WndProc of the GluedWindow like this

                protected override void WndProc(ref
System.Windows.Forms.Message m)
                {
                        if (m.Msg == 0x0084) //WM_NCHITTEST
                        {
                                base.WndProc(ref m);

                                if (m.Result == (IntPtr)2) //HTCAPTION
                                        m.Result = IntPtr.Zero;
//HTNOWHERE
                        }
                        else
                                base.WndProc(ref m);
                }

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to