Thread: Problems with mouse wheel...

  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, 07:49 PM
  3. erratic behavior with mouse messages
    By bennyandthejets in forum Windows Programming
    Replies: 2
    Last Post: 12-13-2002, 12:51 AM
  4. Game Design Topic #2 - Keyboard or Mouse?
    By TechWins in forum Game Programming
    Replies: 4
    Last Post: 10-08-2002, 03:34 PM