[commit] r1432 - trunk/GME/Search
GMESRC Repository Notifications
gme-commit at list.isis.vanderbilt.edu
Mon Jul 25 16:05:14 CDT 2011
Author: ksmyth
Date: Mon Jul 25 16:05:13 2011
New Revision: 1432
Log:
Select search result item, enter should show the item, not rerun the search
Modified:
trunk/GME/Search/SearchDlg.cpp
Modified: trunk/GME/Search/SearchDlg.cpp
==============================================================================
--- trunk/GME/Search/SearchDlg.cpp Mon Jul 25 15:25:42 2011 (r1431)
+++ trunk/GME/Search/SearchDlg.cpp Mon Jul 25 16:05:13 2011 (r1432)
@@ -236,6 +236,14 @@
void CSearchDlg::OnButtonGo()
{
+ // FIXME: why do neither ON_NOTIFY(LVN_ITEMACTIVATE nor NM_RETURN work?
+ HWND h = ::GetFocus();
+ while (h) {
+ if (h == GetDlgItem(IDC_LISTRESULTS)->GetSafeHwnd()) {
+ return itemDblClicked();
+ }
+ h = ::GetParent(h);
+ }
if(CWnd::UpdateData(TRUE))
{
if(m_searchResults)
More information about the gme-commit
mailing list