CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Window Snap

  1. #1
    Guest

    Window Snap

    Is there an API call or something that I can use in VB 6 to get a window to snap to the screen edge (like Winamp does). I figure if I subclass the window and watch for it to approach a certain distance away from any screen edge, I need to do something. What that is, I don't know. If I try to manually place the form, it gets confused and moves back and forth between the current location of the mouse and the new location. Perhaps I need to move the cursor too. Any ideas?


  2. #2
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: Window Snap

    Take a look at this post

    http://codeguru.developer.com/bbs/wt...age=0&Limit=25

    The file / class that it points to allows your form to behave in the same manner as the windows taskbar.


    Chris Eastwood

    CodeGuru - the website for developers
    http://codeguru.developer.com/vb

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