开发者

how to add a button to Windows CE 6 aygshell menu bar and link to a library function?

开发者 https://www.devze.com 2023-04-01 16:32 出处:网络
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.

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:

  1. What is the best way to add a soft keyboard button to an application specific toolbar?
  2. 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.

  1. 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.

  2. 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() {

开发者_Python百科

...

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号