BOOL CallSip( HWND hWnd, WPARAM wId)
{
HWND hSip;
UINT CmdMessage = WM_USER;
hSip = FindWindow( ClassName_TSR, NULL); | // Find "SipTsr" |
if ( hSip == NULL) { |
|
MessageBox( hWnd, TEXT("Error: FindWindow failed!"), |
|
TEXT("SIPanel Sample"), MB_OK); |
|
return FALSE; |
|
} |
|
switch( wId) { |
|
case IDC_BTN_TEXT: |
|
CmdMessage++; |
|
case IDC_BTN_TEN: |
|
CmdMessage++; |
|
break; |
|
default: |
|
return FALSE; |
|
} |
|
SendMessage( hSip, CmdMessage, 0, 0); | // Send message to SipTsr |
return TRUE; |
|
} |
|
33