| 204 | } |
| 205 | |
| 206 | LRESULT CFlashUI::TranslateAccelerator( MSG *pMsg ) |
| 207 | { |
| 208 | if(pMsg->message < WM_KEYFIRST || pMsg->message > WM_KEYLAST) |
| 209 | return S_FALSE; |
| 210 | |
| 211 | if( m_pFlash == NULL ) |
| 212 | return E_NOTIMPL; |
| 213 | |
| 214 | // ��ǰWeb���ڲ��ǽ���,���������ټ� |
| 215 | BOOL bIsChild = FALSE; |
| 216 | HWND hTempWnd = NULL; |
| 217 | HWND hWndFocus = ::GetFocus(); |
| 218 | |
| 219 | hTempWnd = hWndFocus; |
| 220 | while(hTempWnd != NULL) |
| 221 | { |
| 222 | if(hTempWnd == m_hwndHost) |
| 223 | { |
| 224 | bIsChild = TRUE; |
| 225 | break; |
| 226 | } |
| 227 | hTempWnd = ::GetParent(hTempWnd); |
| 228 | } |
| 229 | if(!bIsChild) |
| 230 | return S_FALSE; |
| 231 | |
| 232 | CComPtr<IOleInPlaceActiveObject> pObj; |
| 233 | if (FAILED(m_pFlash->QueryInterface(IID_IOleInPlaceActiveObject, (LPVOID *)&pObj))) |
| 234 | return S_FALSE; |
| 235 | |
| 236 | HRESULT hResult = pObj->TranslateAccelerator(pMsg); |
| 237 | return hResult; |
| 238 | } |
| 239 | |
| 240 | HRESULT CFlashUI::RegisterEventHandler( BOOL inAdvise ) |
| 241 | { |
nothing calls this directly
no test coverage detected