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

Page 33
Image 33
Casio PA-2400W manual Find SipTsr