Just one more thing...

How did you know it's a HIWORD(wParam)...
Because I just looked up the CBN_CLOSEUP in the msdn, and it didn't say anything about hiword.