[Cppunit-cvs] cppunit/src/msvc6/testrunner MsDevCallerListCtrl.cpp, 1.5, 1.6
Brought to you by:
blep
From: Baptiste L. <bl...@us...> - 2006-06-29 19:53:45
|
Update of /cvsroot/cppunit/cppunit/src/msvc6/testrunner In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv15557/src/msvc6/testrunner Modified Files: MsDevCallerListCtrl.cpp Log Message: * src/msvc6/testrunner/MsDevCallerListCtrl.cpp: applied correction provided to fix bug #1498175 (double click on failure does not goto failure). Index: MsDevCallerListCtrl.cpp =================================================================== RCS file: /cvsroot/cppunit/cppunit/src/msvc6/testrunner/MsDevCallerListCtrl.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** MsDevCallerListCtrl.cpp 10 Sep 2004 07:53:18 -0000 1.5 --- MsDevCallerListCtrl.cpp 29 Jun 2006 19:53:40 -0000 1.6 *************** *** 218,232 **** void MsDevCallerListCtrl::OnDblclk(NMHDR* pNMHDR, LRESULT* pResult) { ! CPoint pt; ! GetCursorPos( &pt); ! ScreenToClient( &pt); ! ! // some dirty hack to get some selection ! // should get the border-width + 1, but WINDOWINFO ! // is not supported in Win95 ! pt.x = 5; - UINT flags = 0; - int hotItem = HitTest( pt, &flags); CString lineNumber = GetItemText( hotItem, m_lineNumberSubItem); CString fileName = GetItemText( hotItem, m_fileNameSubItem); --- 218,225 ---- void MsDevCallerListCtrl::OnDblclk(NMHDR* pNMHDR, LRESULT* pResult) { ! // get index of selected item ! POSITION pos = GetFirstSelectedItemPosition(); ! int hotItem = GetNextSelectedItem(pos); CString lineNumber = GetItemText( hotItem, m_lineNumberSubItem); CString fileName = GetItemText( hotItem, m_fileNameSubItem); |