Problems with mouse wheel...

This is a discussion on Problems with mouse wheel... within the Windows Programming forums, part of the Platform Specific Boards category; I can't get the mouse wheel working in a simple consol application. I've read everthing I've found on the subject ...

  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    11

    Problems with mouse wheel...

    I can't get the mouse wheel working in a simple consol application. I've read everthing I've found on the subject but still it's not working.

    In the MSDN library I've found the "WM_MOUSEWHEEL Notification" and there are also a macro that should let you find out if the mouse wheel is scrolled up or down

    Code:
    zDelta = GET_WHEEL_DELTA_WPARAM(wParam);
    zDelta < 0 if the wheel is scrolled towards the user and >0 if rotaded away from the user. The problem is that the compiler leaves the following error:

    error C2065: 'GET_WHEEL_DELTA_WPARAM' : undeclared identifier

    Why? I've included windows.h (where winuser.h is included).

    Thanks,
    Kristian

  2. #2
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    How in the world are you receiving windows message notifications in a console program?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Mouse scroll stopped working
    By Waldo2k2 in forum Tech Board
    Replies: 2
    Last Post: 10-12-2004, 11:25 AM
  2. Friggin Mouse on Laptop
    By OneStiffRod in forum Tech Board
    Replies: 2
    Last Post: 03-27-2003, 06:49 PM
  3. erratic behavior with mouse messages
    By bennyandthejets in forum Windows Programming
    Replies: 2
    Last Post: 12-12-2002, 11:51 PM
  4. Game Design Topic #2 - Keyboard or Mouse?
    By TechWins in forum Game Programming
    Replies: 4
    Last Post: 10-08-2002, 03:34 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21