(In reply to comment #447) > 1. Get the HWND of the parent > 2. Send a message WM_SETFOCUS to that HWND after having sent WM_KILLFOCUS > to the plugin
No change. I've also tried:
HWND parent = GetParent(hWnd); if (parent) SetFocus(parent); and HWND parent = GetParent(GetFocus()); if (parent) SetFocus(parent);
The above examples clear the yellow focus rectangle, but TAB still tabs through the plugin's controls.
I think this is the wrong approach though; https://developer.mozilla.org/en/Code_snippets/Finding_Window_Handles suggests that there is only one native window in Firefox 4. I reckon something like my "widget->GetParent()" snippet is required.
Some help from anyone familiar with how to locate the tab widget and focus it properly would be appreciated.
(In reply to comment #447)
> 1. Get the HWND of the parent
> 2. Send a message WM_SETFOCUS to that HWND after having sent WM_KILLFOCUS
> to the plugin
No change. I've also tried:
HWND parent = GetParent(hWnd);
SetFocus( parent) ; GetFocus( ));
SetFocus( parent) ;
if (parent)
and
HWND parent = GetParent(
if (parent)
The above examples clear the yellow focus rectangle, but TAB still tabs through the plugin's controls.
I think this is the wrong approach though; https:/ /developer. mozilla. org/en/ Code_snippets/ Finding_ Window_ Handles suggests that there is only one native window in Firefox 4. I reckon something like my "widget- >GetParent( )" snippet is required.
Some help from anyone familiar with how to locate the tab widget and focus it properly would be appreciated.