Can anyone help. I need to determine if my form has lost or regained the focus using the win32api.