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() {
开发者_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.
精彩评论