【Delphi】Webbrowser加载Flash后方向键失效问题
来源:互联网 发布:电脑软件删不掉怎么办 编辑:程序博客网 时间:2024/06/05 03:29
原文:http://blog.csdn.net/dropme/article/details/6253528
窗体上放一个ApplicationEvent控件,OnMessage事件中这么写
uses ActiveX;procedure TForm1.ApplicationEvents1Message(var Msg: tagMSG; var Handled: Boolean);const StdKeys = [VK_TAB, VK_RETURN, VK_BACK]; { standard keys } ExtKeys = [VK_DELETE, VK_LEFT, VK_RIGHT, VK_UP, VK_DOWN]; { extended keys } fExtended = $01000000; { extended key flag }var CurrentEWB: TEmbeddedWB;begin Handled := False; CurrentEWB := EmbeddedWB1; if Assigned(CurrentEWB) then if IsChild(CurrentEWB.Handle, Msg.Hwnd) then begin Handled := (IsDialogMessage(CurrentEWB.Handle, Msg) = True); if Handled and not CurrentEWB.Busy then if ((Msg.Message >= WM_KEYFIRST) and (Msg.Message <= WM_KEYLAST)) and ((Msg.wParam in StdKeys) or (GetKeyState(VK_CONTROL) < 0) or (Msg.wParam in ExtKeys) and ((Msg.lParam and fExtended) = fExtended)) then begin Handled := (CurrentEWB.Application as IOleInPlaceActiveObject).TranslateAccelerator(Msg) = S_OK; if not Handled then begin Handled := True; TranslateMessage(Msg); DispatchMessage(Msg); end; end; end;end;
- 【Delphi】Webbrowser加载Flash后方向键失效问题
- 解决Webbrowser加载Flash后,方向键等冲突
- Delphi中用Webbrowser加载百度地图滚轮失效
- ubuntu中方向键失效问题
- delphi中Webbrowser问题收集
- Linux vi编辑器方向键及退格键失效问题
- html中加载flash后的路径问题
- WebBrowser加载完毕后再往下执行
- AJAX加载后js失效问题及ASP.NET中UpdatePanel内控件的JS失效的问题
- Delphi中WebBrowser判断页面及JS是否加载完成
- Delphi动态的修改WebBrowser加载页面的内容
- Delphi中WebBrowser判断页面及JS是否加载完成
- Delphi动态的修改WebBrowser加载页面的内容
- Delphi中判断WebBrowser的页面是否加载完成
- 使用live delegate on来解决js对后加载的html失效的问题
- 使用live delegate on来解决js对后加载的html失效的问题
- Button绑定onTouchListenner后加载background失效
- Delphi断点全部失效的问题
- pthread_cond_write
- .playvideobyvideoview
- 【练习01】 简单题(1)1012
- c语言基本数据类型
- 项目实践之Facade模式
- 【Delphi】Webbrowser加载Flash后方向键失效问题
- android 驱动有关的类和宏
- 使用IntelliLock加密授权你的.Net程序
- Windows Azure Mobile Services增加了对 Android的支持并扩展其适用范围至东亚地区
- MFC 获取当前活动窗口的句柄
- recv() failed (104: Connection reset by peer) while reading response header from upstream
- JAVA定时调度框架Quartz使用案例
- HashSet应用举例
- memcached+net缓存