mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
Minimo Wince Only. Fixing up Open and Close SIP for Windows CE 5.0
This commit is contained in:
parent
b8dbb14ffa
commit
70b7c98c4a
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user