}
return false;
}
- case WM_ACTIVATE:
+ case WM_SETFOCUS:
+ case WM_KILLFOCUS:
{
if (theMsg.hwnd == (HWND )myHWindow)
{
- theListener.ProcessFocus (LOWORD(theMsg.wParam) == WA_CLICKACTIVE
- || LOWORD(theMsg.wParam) == WA_ACTIVE);
+ theListener.ProcessFocus (theMsg.message == WM_SETFOCUS);
return true;
}
return false;