diff options
author | fcolin | 2007-02-01 13:11:06 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 13:11:06 +0000 |
commit | c3b5d14f51499c0a3261dbaafa9ebc8a74740d76 (patch) | |
tree | 20bc88504e46a3f7e17f74dd68054a7e81d23836 /Bus/IvyProbe/IvyProbeDlg.cpp | |
parent | c929e4d16205f6515b807c0954b427303823c4c3 (diff) | |
download | ivy-cplusplus-c3b5d14f51499c0a3261dbaafa9ebc8a74740d76.zip ivy-cplusplus-c3b5d14f51499c0a3261dbaafa9ebc8a74740d76.tar.gz ivy-cplusplus-c3b5d14f51499c0a3261dbaafa9ebc8a74740d76.tar.bz2 ivy-cplusplus-c3b5d14f51499c0a3261dbaafa9ebc8a74740d76.tar.xz |
Utilisateur : Fcolin Date : 6/06/06 Heure : 16:43 Archivé dans $/Bus/IvyProbe Commentaire: (vss 21)
Diffstat (limited to 'Bus/IvyProbe/IvyProbeDlg.cpp')
-rw-r--r-- | Bus/IvyProbe/IvyProbeDlg.cpp | 19 |
1 files changed, 17 insertions, 2 deletions
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 );
|