View previous topic :: View next topic |
Author |
Message |
Zone
Joined: 09 Apr 2011 Posts: 10
|
Posted: Thu Apr 14, 2011 12:46 am Post subject: WM_MOUSEHWHEEL in win32/winuser.d |
|
|
This define is missing, it needs to look something like this:
Code: |
static if(_WIN32_WINNT >= 0x0600)
{
const WM_MOUSEHWHEEL=526; // 0x020E
}
|
WM_MOUSELAST needs to be updated in a similar manner to reflect the new max value of 526 for vista.
Last edited by Zone on Thu Apr 14, 2011 2:16 am; edited 1 time in total |
|
Back to top |
|
|
Zone
Joined: 09 Apr 2011 Posts: 10
|
Posted: Thu Apr 14, 2011 2:16 am Post subject: |
|
|
This works, though there is probably a better way to deal with the WM_XBUTTON* defines.
Code: |
static if (_WIN32_WINNT >= 0x600) {
const WM_XBUTTONDOWN=523;
const WM_XBUTTONUP=524;
const WM_XBUTTONDBLCLK=525;
const WM_MOUSEHWHEEL=526;
const WM_MOUSELAST=526;
}
else static if (_WIN32_WINNT >= 0x500) {
const WM_XBUTTONDOWN=523;
const WM_XBUTTONUP=524;
const WM_XBUTTONDBLCLK=525;
const WM_MOUSELAST=525;
} else {
const WM_MOUSELAST=522;
}
| [/code] |
|
Back to top |
|
|
|