Page 1 of 1

SIP problem

PostPosted: Jun 17, 2005 @ 12:10pm
by Libero

PostPosted: Jun 18, 2005 @ 2:33am
by Dan East
I've read your post a few times now, and I still don't understand exactly what is happening. Can you go into more detail?

Dan East

PostPosted: Jun 18, 2005 @ 4:39pm
by Rhino123

PostPosted: Jun 18, 2005 @ 4:54pm
by Dan East

PostPosted: Jun 20, 2005 @ 7:50am
by Libero

PostPosted: Jun 20, 2005 @ 2:16pm
by Dan East
Try calling SetFocus on your window handle when you get a keydown event. If that doesn't work then try SetForegroundWindow. Windows CE dialog boxes must have some mechanism that automatically takes input focus back from the SIP.

Dan East

PostPosted: Jun 20, 2005 @ 2:25pm
by Dan East
Are you specifying the HWND of your main window when you display the SIP? For example SHSipPreference(hWnd, SIP_UP) instead of SHSipPreference(NULL, SIP_UP).

Dan East

PostPosted: Jun 20, 2005 @ 3:46pm
by Libero
My application is a form which is derived from Form:

public class Form1 : System.Windows.Forms.Form
{
}

and is start up like this:

static void Main()
{
Application.Run(new Form1());
}

I don't need to call a function to open the SIP panel, there is a keyboard icon in the toolbar which can enable the panel.

I think I have to force in some way that the panel has focus when it's enabled as a result of which it will fire the keydown event when a key is pressed.

Maarten