Relocation of the parent form for the subsidiary



  • There's a uniform without a headline. How I handled it. This code intercepts the message about the headline and the shape makes it look like she's wearing the title:

    base.Capture = false; 
    Message m = Message.Create(base.Handle, 0xa1, new IntPtr(2), IntPtr.Zero); 
    this.WndProc(ref m);
    

    There's a panel in the parent's form that includes another form. The board code doesn't work. He works for shape. If this code is attached to your daughter's shape, it's starting to slip inside the panel!

    Can this code be screamed in such a way that when the daughter's board is seized, a message about the parent's head restraint is transmitted?



  • The daughter panels can be made transparent for mice, like:

    protected override void WndProc(ref Message m) {
        if (m.Msg == 0x0084)            // WM_NCHITTEST
            m.Result = (IntPtr)(-1);    // HTTRANSPARENT
        else
            base.WndProc(ref m);
    }
    


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2