Click here to Skip to main content
16,006,341 members
Home / Discussions / Mobile
   

Mobile

 
GeneralError installing WinCE SDK Pin
Elbie9-Jan-04 0:45
Elbie9-Jan-04 0:45 
GeneralRe: Error installing WinCE SDK Pin
João Paulo Figueira9-Jan-04 0:56
professionalJoão Paulo Figueira9-Jan-04 0:56 
GeneralRe: Error installing WinCE SDK Pin
Elbie12-Jan-04 3:36
Elbie12-Jan-04 3:36 
GeneralPalm Devices Pin
hxxbin8-Jan-04 8:31
hxxbin8-Jan-04 8:31 
GeneralRe: Palm Devices Pin
Ian Darling9-Jan-04 0:58
Ian Darling9-Jan-04 0:58 
GeneralRe: Palm Devices Pin
kaangonel10-Jan-04 11:21
kaangonel10-Jan-04 11:21 
GeneralSIP on PropertyPage disapear! Pin
VOlivier8-Jan-04 0:10
VOlivier8-Jan-04 0:10 
GeneralRe: SIP on PropertyPage disapear! Pin
#realJSOP8-Jan-04 5:07
professional#realJSOP8-Jan-04 5:07 
I use the following method to show/hide the SIP. When the app starts, the sip is hidden. When I display a dialog, I do this:

CMyDialog dlg;
ShowSipButton();
dlg.DoModal();
HideSipButton();


Here's the code for showing and hiding the sip:

// in the header file
class CMainFrame
{
protected:
	HWND  m_hwndSIP;
	CRect m_SIPRect;
	BOOL  m_bSIPHidden;
public:
	void HideSipButton();
	void ShowSipButton();
};

int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
	if (CFrameWnd::OnCreate(lpCreateStruct) == -1)
	{
		return -1;
	}

	m_hwndSIP = ::FindWindow(_T("MS_SIPBUTTON"), NULL);
	ASSERT(NULL != m_hwndSIP);
	::GetWindowRect(m_hwndSIP, &m_SIPRect);
	m_bSIPHidden = FALSE;
	HideSipButton();

	return 0;
}

//------------------------------------------------------------------------------
// Hides the SIP button by moving it OFF the visible screen.
//------------------------------------------------------------------------------
void CMainFrame::HideSipButton()
{
   if (!m_bSIPHidden)
   {
	   ASSERT(NULL != m_hwndSIP);
	   ::MoveWindow(m_hwndSIP, 0, 0, 0, 0, TRUE);
	   m_bSIPHidden = TRUE;
   }
}


//------------------------------------------------------------------------------
// Displays the SIP button by moving it back onto the visible screen.
//------------------------------------------------------------------------------
void CMainFrame::ShowSipButton() 
{
   if (m_bSIPHidden)
   {
	   ASSERT(NULL != m_hwndSIP);
	   ::MoveWindow(m_hwndSIP,
	                m_SIPRect.left,
	                m_SIPRect.top,
	                m_SIPRect.right - m_SIPRect.left + 1,
	                m_SIPRect.bottom - m_SIPRect.top + 1,
	                TRUE);
	   m_bSIPHidden = FALSE;
   }
}



------- signature starts

"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

"You won't like me when I'm angry..." - Dr. Bruce Banner

Please review the Legal Disclaimer in my bio.

------- signature ends
GeneralRe: SIP on PropertyPage disapear! Pin
VOlivier8-Jan-04 5:53
VOlivier8-Jan-04 5:53 
GeneralRe: SIP on PropertyPage disapear! Pin
cmk9-Jan-04 21:09
cmk9-Jan-04 21:09 
GeneralIt is possible to save a drawing? (.Net) Pin
Nick Seng8-Jan-04 0:05
Nick Seng8-Jan-04 0:05 
GeneralThis is not a programming question Pin
Nick Seng7-Jan-04 21:49
Nick Seng7-Jan-04 21:49 
GeneralRe: This is not a programming question Pin
João Paulo Figueira7-Jan-04 22:20
professionalJoão Paulo Figueira7-Jan-04 22:20 
GeneralRe: This is not a programming question Pin
Nick Seng7-Jan-04 22:34
Nick Seng7-Jan-04 22:34 
GeneralRe: This is not a programming question Pin
João Paulo Figueira7-Jan-04 22:54
professionalJoão Paulo Figueira7-Jan-04 22:54 
GeneralRe: This is not a programming question Pin
Nick Seng8-Jan-04 0:03
Nick Seng8-Jan-04 0:03 
GeneralDetect Bluetooth device Pin
Cedric Moonen7-Jan-04 4:41
Cedric Moonen7-Jan-04 4:41 
Generalcreate login page in WinCE Pin
psyclope6-Jan-04 22:35
psyclope6-Jan-04 22:35 
GeneralTruly Weird Pin
#realJSOP6-Jan-04 5:59
professional#realJSOP6-Jan-04 5:59 
GeneralRe: Truly Weird Pin
João Paulo Figueira6-Jan-04 6:36
professionalJoão Paulo Figueira6-Jan-04 6:36 
GeneralRe: Truly Weird Pin
#realJSOP6-Jan-04 6:39
professional#realJSOP6-Jan-04 6:39 
GeneralRe: Truly Weird Pin
João Paulo Figueira6-Jan-04 6:48
professionalJoão Paulo Figueira6-Jan-04 6:48 
GeneralRe: Truly Weird Pin
#realJSOP7-Jan-04 4:27
professional#realJSOP7-Jan-04 4:27 
GeneralVoice call using phone Pin
misha_grewal6-Jan-04 1:21
misha_grewal6-Jan-04 1:21 
GeneralRe: Voice call using phone Pin
João Paulo Figueira6-Jan-04 2:57
professionalJoão Paulo Figueira6-Jan-04 2:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.