>>410
C言語はビット演算と論理演算が別演算子なんだす。
VBは知らん。昔のMicrosoft BASICはそんな区別は無かったかな?

if (j.dwButtons and &H08) <> 0 and (j.dwButtons and &H10) <> 0 then ...
が正解?