Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. URGENT: Mouse hook problem, help me

URGENT: Mouse hook problem, help me

Scheduled Pinned Locked Moved C / C++ / MFC
help
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Do Quyet Tien
    wrote on last edited by
    #1

    Hi, I am writing a image capturing app which support user select any region on screen, so I used system mouse hook to track mouse movement (WH_MOUSE). Everything seemed right, until I found that my hook don't reiceive WM_MOUSEMOVE when mouse cursor go out of current window while left button keep down. It is very strange, I've debugged but don't find any thing wrong In all message handle I return 1 for preventing any window process them. Thanks a lot for your assistance. Do Quyet Tien

    A D 2 Replies Last reply
    0
    • D Do Quyet Tien

      Hi, I am writing a image capturing app which support user select any region on screen, so I used system mouse hook to track mouse movement (WH_MOUSE). Everything seemed right, until I found that my hook don't reiceive WM_MOUSEMOVE when mouse cursor go out of current window while left button keep down. It is very strange, I've debugged but don't find any thing wrong In all message handle I return 1 for preventing any window process them. Thanks a lot for your assistance. Do Quyet Tien

      A Offline
      A Offline
      AlexEg
      wrote on last edited by
      #2

      Hi, do you have this line "#define _WIN32_WINNT 0x0400" before including Afxwin.h ? I found that without it that doesn't work right. Alex

      1 Reply Last reply
      0
      • D Do Quyet Tien

        Hi, I am writing a image capturing app which support user select any region on screen, so I used system mouse hook to track mouse movement (WH_MOUSE). Everything seemed right, until I found that my hook don't reiceive WM_MOUSEMOVE when mouse cursor go out of current window while left button keep down. It is very strange, I've debugged but don't find any thing wrong In all message handle I return 1 for preventing any window process them. Thanks a lot for your assistance. Do Quyet Tien

        D Offline
        D Offline
        Do Quyet Tien
        wrote on last edited by
        #3

        Thanks Do Quyet Tien

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups