Thread: Win32 API - unable to SetCapture properly

  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    6

    Win32 API - unable to SetCapture properly

    hi there

    i am a beginner programmer and
    reading Programming Windows 5th Edition.

    my question: is it possible to capture mouse movements
    outside client area without dragging the mouse...

    i am only handling WM_LBUTTONDOWN message
    so that one click SetCapture, the next click ReleaseCapture

    eg.) in my program, my goal is to Click"center of client area,
    then go outside my client area -- without Dragging the mouse--
    and still be able to capture my mouse movements.

    The book only presents a solution where
    the user has to "drag" the mouse so that the mouse movement
    is captured even oustide the client area.

  2. #2
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    Mouse Hook.

    There are way too much threads about the same thing.
    "The Internet treats censorship as damage and routes around it." - John Gilmore

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. win32 api help
    By Noxir in forum C++ Programming
    Replies: 5
    Last Post: 08-16-2004, 11:44 AM
  2. WIN32 API for ....
    By canine in forum Windows Programming
    Replies: 2
    Last Post: 12-02-2001, 12:25 AM
  3. pthread api vs win32 thread api
    By Unregistered in forum Windows Programming
    Replies: 1
    Last Post: 11-20-2001, 08:55 AM
  4. Does C++ knowledge come into Win32 API?
    By Flucas in forum Windows Programming
    Replies: 10
    Last Post: 10-26-2001, 10:17 AM
  5. Learn Win32 API or C++Builder?
    By Flucas in forum Windows Programming
    Replies: 1
    Last Post: 10-18-2001, 01:49 AM