From c3b5d14f51499c0a3261dbaafa9ebc8a74740d76 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 13:11:06 +0000 Subject: Utilisateur : Fcolin Date : 6/06/06 Heure : 16:43 Archivé dans $/Bus/IvyProbe Commentaire: (vss 21) --- Bus/IvyProbe/IvyProbeDlg.cpp | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'Bus/IvyProbe/IvyProbeDlg.cpp') diff --git a/Bus/IvyProbe/IvyProbeDlg.cpp b/Bus/IvyProbe/IvyProbeDlg.cpp index 997ae6f..3d0e7b2 100644 --- a/Bus/IvyProbe/IvyProbeDlg.cpp +++ b/Bus/IvyProbe/IvyProbeDlg.cpp @@ -157,6 +157,7 @@ BOOL CIvyProbeDlg::OnInitDialog() m_busnumber = cmd.m_busNumber; bus = new Ivy( "IvyProbe Windows","IvyProbe Windows Ready",this,FALSE); + bus->SetBindCallback( this ); // bus->BindMsg("(.*)", BUS_CALLBACK_OF(CTestDlg, IvyCallback )); @@ -203,7 +204,7 @@ void CIvyProbeDlg::OnStart() UpdateData(FALSE); } -void CIvyProbeDlg::IvyCallback(IvyApplication *app, int argc, const char **argv) +void CIvyProbeDlg::OnMessage(IvyApplication *app, int argc, const char **argv) { int i; CString text; @@ -233,6 +234,20 @@ void CIvyProbeDlg::OnApplicationDisconnected(IvyApplication *app) { WriteMessage( "Application: %s bye",(LPCSTR)(app->GetName()) ); } + +void CIvyProbeDlg::OnAddBind (IvyApplication *app, int id, const char * regexp) +{ + WriteMessage( "Application: %s Add Binding %s",(LPCSTR)(app->GetName()), regexp ); +} +void CIvyProbeDlg::OnRemoveBind (IvyApplication *app, int id, const char * regexp) +{ + WriteMessage( "Application: %s Remove Binding %s",(LPCSTR)(app->GetName()), regexp ); +} +void CIvyProbeDlg::OnFilterBind (IvyApplication *app, int id, const char * regexp) +{ + WriteMessage( "Application: %s Filtered Binding %s",(LPCSTR)(app->GetName()), regexp ); +} + void CIvyProbeDlg::WriteMessage(const char *format, ...) { char str[4096]; @@ -280,7 +295,7 @@ void CIvyProbeDlg::OnBind() m_expr.SetEditSel( 0, -1 ); m_expr.GetWindowText( buffer ); if ( buffer.IsEmpty() ) return; - int count = bus->BindMsg( CONVSTR(buffer) , BUS_CALLBACK_OF(CIvyProbeDlg, IvyCallback )); + int count = bus->BindMsg( CONVSTR(buffer) , this ); if ( m_expr.FindStringExact(-1, buffer) == CB_ERR ) { m_expr.AddString( buffer ); -- cgit v1.1