|
Posted by kaan.toker on August 21, 2007, 8:49 am
Please log in for more thread options
On 24 Temmuz, 12:55, dav.oliva...@gmail.com wrote:
> I need to make my ownscreenfor a incoming phone call with caller
> data that I need, but I can not hide the standard caller window and my
> application keeps behind. I tried to close the callerscreenbut then
> the phone hang off:
>
> <DllImport("coredll.dll")> _
> Private Shared Function SendMessage(ByVal hWnd As IntPtr, ByVal
> msg As Integer, ByVal wParam As IntPtr, ByVal lParam As IntPtr) As
> Integer
> End Function
> Private Const WM_CLOSE As Integer = &H10
> Public Const WM_HIDE = 0
>
> Friend WithEvents IncomingCall As New
> SystemState(SystemProperty.PhoneIncomingCall)
>
> Private Sub CheckCallStatus(ByVal Sender As Object, ByVal Args As
> ChangeEventArgs) Handles IncomingCall.Changed
> PhoneNumber =
> SystemState.GetValue(SystemProperty.PhoneIncomingCallerNumber)
> Me.txtLog.Text = Now() & "-" & PhoneNumber & vbCrLf &
> Me.txtLog.Text
>
> Dim hwnd As IntPtr = GetForegroundWindow()
>
> SendMessage(hwnd, WM_CLOSE, IntPtr.Zero, IntPtr.Zero)
> Me.Show()
>
> End Sub
Hi,
If you find the solution please share with me please.
Regards
Kaan Toker
|