CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 1999
    Location
    US, Florida
    Posts
    817

    Is there anyway to shape the form anyway you like?

    Not just rectangle or circle......any shape, you basically draw the shape with lines and then kind of insert it into a form making form to show as a shape that was drawn


  2. #2
    Join Date
    Feb 2000
    Location
    South Carolina, US
    Posts
    36

    Re: Is there anyway to shape the form anyway you like?

    I know of no official way to do this, but would look for a way to capture all mouse strokes, and to draw bitmaps on the screen using your own to to decide wheter the mouse was over them, or if it should be passed on to another app.
    You'd need two main bitmaps for the window, the window itself and the mask, using the old and/or method for transparency. This would probably done with another real, and rectangular (but invisible) form so you have somewhere to place the controls that you fake, Winsocks, or whatever else you'd need to drop onto a form.

    Alternately, you could take an ordinary form that contains the form you would want, drop whater wherever on it, and keep changing the background of the form to match whatever is under it.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured