请教:vc6下“鼠标滑轮事件”的问题--GET_WHEEL_DELTA_WPARAM()函数无法识别
我要获取鼠标滑轮滑动的距离,于是按照msdn上说:zDelta = GET_WHEEL_DELTA_WPARAM(wParam);
但是,编译不通过。提示:“'GET_WHEEL_DELTA_WPARAM' : undeclared identifier”
该怎么办?请高手指点!谢谢!
系统是win2000,环境是vc++6.0
程序所包含的头文件如下:
#include <stdlib.h>
#include <vector>
#define _WIN32_WINDOWS 0x0410//如果没有这行,程序就识别不了“WM_MOUSEWHEEL”这个鼠标事件的常量!
#include <windows.h>
#include <string.h>
#include <stdio.h>
#include <gl\gl.h>
#include <gl\glu.h>
#include <gl\glaux.h>
#include <GL\glut.h>
#include <math.h>