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

git-svn-id: svn://10.0.0.236/trunk@182595 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dougt%meer.net
2005-10-20 16:53:40 +00:00
parent 563f435fbf
commit 9294a4457a

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
}