From 9294a4457a3e34237ebda79b3b4d714494b1620e Mon Sep 17 00:00:00 2001 From: "dougt%meer.net" Date: Thu, 20 Oct 2005 16:53:40 +0000 Subject: [PATCH] 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 --- .../components/softkb/nsSoftKeyBoard.cpp | 21 ++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/mozilla/minimo/components/softkb/nsSoftKeyBoard.cpp b/mozilla/minimo/components/softkb/nsSoftKeyBoard.cpp index 64b65eae355..2c40835392f 100755 --- a/mozilla/minimo/components/softkb/nsSoftKeyBoard.cpp +++ b/mozilla/minimo/components/softkb/nsSoftKeyBoard.cpp @@ -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 }