Results 1 to 2 of 2

Thread: [RESOLVED] Move window with middle mouse button

  1. #1

    Thread Starter
    VB For Fun Edgemeal's Avatar
    Join Date
    Sep 2006
    Location
    WindowFromPoint
    Posts
    4,255

    Resolved [RESOLVED] Move window with middle mouse button

    To move a borderless form with the left mouse button we can use this code and works just fine,
    ReleaseCapture
    SendMessage Me.hwnd, WM_NCLBUTTONDOWN, HTCAPTION, 0&

    But I want to use the middle mouse button, I tried changing it to WM_NCMBUTTONDOWN, but it doesn't do anything.

    Any ideas?

  2. #2

    Thread Starter
    VB For Fun Edgemeal's Avatar
    Join Date
    Sep 2006
    Location
    WindowFromPoint
    Posts
    4,255

    Re: Move window with middle mouse button

    Edit Never mind, I figured out a solution.
    Last edited by Edgemeal; Sep 28th, 2008 at 05:09 PM.

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