FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

WM_MOUSEHWHEEL in win32/winuser.d

 
Post new topic   Reply to topic     Forum Index -> Bindings
View previous topic :: View next topic  
Author Message
Zone



Joined: 09 Apr 2011
Posts: 10

PostPosted: Thu Apr 14, 2011 12:46 am    Post subject: WM_MOUSEHWHEEL in win32/winuser.d Reply with quote

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
View user's profile Send private message Send e-mail
Zone



Joined: 09 Apr 2011
Posts: 10

PostPosted: Thu Apr 14, 2011 2:16 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Bindings All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group