Why are you checking it twice (bit manipulation is not my specialty yet)?
Wish I could have suggested something better!
Why are you checking it twice (bit manipulation is not my specialty yet)?
Wish I could have suggested something better!
Experimentally, this works in all cases. But I really need confirmation because this is really a hack and does not make much logical sense in the context of the MSDN docs.
- Splat
if ((wParam & 0xffff) == WA_INACTIVE) {
isActive = false;
}
else {
if ((wParam >> 16) == 0)
isActive = true;
}
Anyone have any suggestions? This seems to work in all circumstances, but there may be something I am overlooking.
- Splat
- Splat