diff options
Diffstat (limited to 'IvyProbe')
-rw-r--r-- | IvyProbe/IvyProbeDlg.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/IvyProbe/IvyProbeDlg.cpp b/IvyProbe/IvyProbeDlg.cpp index cea28e4..be948ac 100644 --- a/IvyProbe/IvyProbeDlg.cpp +++ b/IvyProbe/IvyProbeDlg.cpp @@ -78,6 +78,7 @@ void CTestDlg::DoDataExchange(CDataExchange* pDX) {
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CTestDlg)
+ DDX_Control(pDX, IDC_MSG, m_msgToSend);
DDX_Control(pDX, IDC_TEXT, m_text);
DDX_Control(pDX, IDC_SLIDER7, m_slider7);
DDX_Control(pDX, IDC_SLIDER6, m_slider6);
@@ -99,6 +100,7 @@ BEGIN_MESSAGE_MAP(CTestDlg, CDialog) ON_WM_QUERYDRAGICON()
ON_BN_CLICKED(IDC_START, OnStart)
ON_WM_VSCROLL()
+ ON_EN_VSCROLL(IDC_MSG, OnVscrollMsg)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
@@ -215,6 +217,8 @@ void CTestDlg::OnStart() bus->BindMsg("^MIDICS10:fader([0-7]) value=([0-9]+)",fader);
bus->BindMsg("^MIDICS10:knob([0-5]) value=([0-9]+)",fader);
+ bus->BindMsg("(.*)",new BusMessageCallbackOf<CTestDlg>(this, BusCallback ));
+
//bus->BindMsg("^S( A=([0-9]+))?( B=([0-9]+))?",cb);
bus->start();
}
@@ -313,3 +317,20 @@ void CTestDlg::OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar) bus->SendMsg( text );
CDialog::OnVScroll(nSBCode, nPos, pScrollBar);
}
+
+void CTestDlg::OnVscrollMsg()
+{
+ // TODO: Add your control notification handler code here
+ char buffer[200];
+ int line = m_msgToSend.GetFirstVisibleLine( ) -1 ;
+ if ( line >= 0 )
+ {
+ int len = m_msgToSend.GetLine( line , buffer, sizeof(buffer)-1);
+ if ( len )
+ {
+ buffer[len] = '\0';
+ TRACE("IDC MSG Scroll %d len= %d %s\n",line,len, buffer);
+ bus->SendMsg( buffer );
+ }
+ }
+}
|