33
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:
Cmd+;
case IDC_BTN_TEN:
Cmd+;
break;
default:
return FALSE;
}
SendMessage( hSip, CmdMessage, 0, 0); // Send message to SipTsr
return TRUE;
}