如何在DirectX中使用屏幕键盘 [英] How to use on screen keyboard in DirectX

查看:118
本文介绍了如何在DirectX中使用屏幕键盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Win7中,触摸屏幕上的编辑框,然后我可以得到一张小图片,让我叫osk(在屏幕键盘上).但是在DirectX应用程序中,所有对象都是图片,而不是真实的编辑框,因此我什么也没得到.我只能通过ShellExecute调用osk,但我希望像win7中的常用应用程序一样.那么,如何像在win7中的其他应用程序一样在触摸屏上的DirectX应用程序中调用osk?

In Win7 touching edit box on screen then I can get a small picture to let me call osk (on screen keyboard). But in DirectX app all objects are pictures not true edit box, so I get nothing. I can just call osk by ShellExecute, but I want like an usual app in win7. So how can I call osk in DirectX app on touch screen like other app in win7?

推荐答案

使用文本输入面板并设置InPlaceVisibleOnFocus和SetInPlaceHoverTargetPosition.

http://msdn.microsoft.com/zh-cn/library/ms700673(v=VS.85).aspx
Use Text Input Panel and setup InPlaceVisibleOnFocus and SetInPlaceHoverTargetPosition.

http://msdn.microsoft.com/en-us/library/ms700673(v=VS.85).aspx


这篇关于如何在DirectX中使用屏幕键盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆