else if ((uMsg != WM_NCACTIVATE) && (uMsg == WM_KEYDOWN)) {amazing comparison folding here, compiler. so it doesn't match WM_NCACTIVATE, but at the same time it does match WM_KEYDOWN? amazing. almost like you could ignore that first test