如何向 Windows CE 6 aygshell 菜单栏添加按钮并链接到库函数?
亲爱的 Windows CE 开发人员,
我想在 Windows CE 6 的 aygshell 菜单栏中提供一个按钮,用于显示或隐藏 Windows CE 6 r3 系统的软件输入面板 (SIP)。
我现在的问题是:
- 将软键盘按钮添加到应用程序特定工具栏的最佳方法是什么?
- 如何以编程方式添加按钮(到应用程序特定工具栏
aygshell
工具栏)并将库链接到它?
我必须在 Visual Studio 2005、Windows CE 6 r3 和 C++ BSP 代码中完成此操作。
- < p>第一种方法是找到一些设置对于
aygshell
,这对我来说是自动的(因为软件键盘似乎很常见),但我没有成功。 第二种方法是添加一个菜单栏按钮并将其连接到一个调用
SipShowIM
的库。我无法让它工作,因此如果你们能帮助我提供比 MSDN 内容。我的步骤是- 在图形表单开发中,我添加了一个菜单和一些菜单项
- 在表单的源文件(但不是 Dlg 源)中,我将具有 SIP 功能的库添加到了相应的方法中。
无效 CaygshellbarApp::OnSipButton() {
<块引用> <块引用>...
SipGetinfo( &info );
bool 可见 = (info.fdwFlags & SIPF_ON);
SipShowIM(可见?SIPF_ON : SIPF_OFF);
}
将非常高兴任何好的文档链接或一些提示,我如何才能完成这项工作。到目前为止 MSDN 信息不够。
Dear fellow Windows CE developers,
I want to make a button available in the aygshell menu bar of Windows CE 6, that shows or hides the software input panel (SIP) of a Windows CE 6 r3 system.
My questions now are:
- What is the best way to add a soft keyboard button to an application specific toolbar?
- How can I add a button programmatically (to an App specific
aygshell
toolbar) and link a library to it?
I have to accomplish this in Visual Studio 2005, Windows CE 6 r3 and the C++ BSP code.
First approach was to find some settings for the
aygshell
, that make this automatically for me (since a software keyboard seems quite common), but i wasn't successful.Second approach was to add a menu bar button and connect it to a library, that calls
SipShowIM
. I couldn't make it work, therefore I'd be happy if you guys could help me with good explained tutorials or links, better than the MSDN stuff. My steps were- in the graphical form development, I added a menu and there some menu items
- in the source file to the form (but not the Dlg source) I added the library with the SIP functionality to the according method.
void CaygshellbarApp::OnSipButton() {
...
SipGetinfo( &info );
bool visible = (info.fdwFlags & SIPF_ON);
SipShowIM(visible? SIPF_ON : SIPF_OFF);
}
I would be very glad for any good documentation links or some hints, how I can get this done. The MSDN info was so far not enough.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论