summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBaptiste Lepilleur <gaiacrtn@free.fr>2006-06-29 18:53:40 +0000
committerBaptiste Lepilleur <gaiacrtn@free.fr>2006-06-29 18:53:40 +0000
commitf6eb27936699b0b26f6d923656e70447aa33c9c5 (patch)
tree25c44d0d5bacca9bc438abdc8900ab3183652652 /src
parentba9d97dc78c69d45d769101f13bbfd33f2c66a9b (diff)
downloadcppunit-f6eb27936699b0b26f6d923656e70447aa33c9c5.tar.gz
src/msvc6/testrunner/MsDevCallerListCtrl.cpp: applied correction
provided to fix bug #1498175 (double click on failure does not goto failure).
Diffstat (limited to 'src')
-rw-r--r--src/msvc6/testrunner/MsDevCallerListCtrl.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/msvc6/testrunner/MsDevCallerListCtrl.cpp b/src/msvc6/testrunner/MsDevCallerListCtrl.cpp
index 6467e7d..5f94bd7 100644
--- a/src/msvc6/testrunner/MsDevCallerListCtrl.cpp
+++ b/src/msvc6/testrunner/MsDevCallerListCtrl.cpp
@@ -217,17 +217,10 @@ END_MESSAGE_MAP()
void MsDevCallerListCtrl::OnDblclk(NMHDR* pNMHDR, LRESULT* pResult)
{
- CPoint pt;
- GetCursorPos( &pt);
- ScreenToClient( &pt);
+ // get index of selected item
+ POSITION pos = GetFirstSelectedItemPosition();
+ int hotItem = GetNextSelectedItem(pos);
- // 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);