[source = "c++"]
/*
error C2065: 'SPI_GETWHEELSCROLLLINES' : undeclared identifier
error C2065: 'WHEEL_DELTA' : undeclared identifier
error C2065: 'WM_MOUSEWHEEL' : undeclared identifier
*/
---------------------------------------------------*/
#include <windows.h>
...
...
...
case WM_SETTINGCHANGE:
SystemParametersInfo (SPI_GETWHEELSCROLLLINES, 0, &ulScrollLines, 0);
//ulScrollLines usually equals 3 or 0(for no scrolling)
//WHEEL_DELTA equals 120, so iDeltaPerLine will be 40
if(ulScrollLines)
{
iDeltaPerLine = WHEEL_DELTA / ulScrollLines;
}else
{
iDeltaPerLine = 0;
}
return 0;
Wierd windows errors!!!(win32 API)
i just don't get it. i've included windows.h, user32.lib is in my linker
includes, and pressing F1 in VS brings the Identifiers up on MSDN, but i still get errors while compiling.
can someone please help??
Yeah that did it. what frustrates me is that i don't see anywhere in the MSDN that says to do that. btw, someone on IRC told me to do that, you wouldn't happen to be that person would you? is 0x501 Vista? i used 0x500 for XP
It does say it on MSDN
Using the Windows Headers
Of course knowing what to search for to find what your looking for are often two different things.
No it wasn't me on IRC :)
Using the Windows Headers
Of course knowing what to search for to find what your looking for are often two different things.
No it wasn't me on IRC :)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement