Minimo Wince Only. Fixing up Open and Close SIP for Windows CE 5.0

This commit is contained in:
dougt%meer.net 2005-10-20 16:53:40 +00:00
parent b8dbb14ffa
commit 70b7c98c4a

View File

@ -590,6 +590,9 @@ nsSoftKeyBoard::OpenSIP()
::ShowWindow( hWndSIP, SW_SHOW);
SHSipPreference(NULL, SIP_UP);
SHFullScreen(GetForegroundWindow(), SHFS_SHOWSIPBUTTON);
#endif
}
@ -600,15 +603,23 @@ nsSoftKeyBoard::CloseSIP()
if (IsSmartphone())
return;
HWND hWndSIP = ::FindWindow( _T( "SipWndClass" ), NULL );
HWND hWndSIP = FindWindow( _T( "SipWndClass" ), NULL );
if (hWndSIP)
::ShowWindow( hWndSIP, SW_HIDE );
{
ShowWindow( hWndSIP, SW_HIDE );
SetWindowPos(hWndSIP, HWND_BOTTOM, 0, 0, 0, 0, SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE);
}
hWndSIP = ::FindWindow( _T( "MS_SIPBUTTON" ), NULL );
if (hWndSIP)
::ShowWindow( hWndSIP, SW_HIDE );
hWndSIP = FindWindow( _T( "MS_SIPBUTTON" ), NULL );
if (hWndSIP)
{
ShowWindow( hWndSIP, SW_HIDE );
SetWindowPos(hWndSIP, HWND_BOTTOM, 0, 0, 0, 0, SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE);
}
SHSipPreference(NULL, SIP_DOWN);
SHFullScreen(GetForegroundWindow(), SHFS_HIDESIPBUTTON);
#endif
}