Joystick programming question using MFC
Posted on 1998-04-22
Hi! I am working on a joystick test program using MFC. I know Windows platform includes some multimedia extension Windows messages (not standard windows messages) like MM_JOY1BUTTONDOWN to handle Multimedia devices. When I am
trying to press any button of the joystick so that Windows will notify my program that one of its buttons has change states, it does NOT WORK if I use ON_MESSAGE(MM_JOY1BUTTONDOWN , OnJoyButtonDown) to handle MM_JOY1BUTTONDOWN message.
(Note: OnJoyButtonDown is a user-defined message function)
Could you tell me the correct way to solve my problem ASAP?