Skip to content

Commit

Permalink
more progress
Browse files Browse the repository at this point in the history
  • Loading branch information
freedom7341 committed Oct 13, 2023
1 parent bbf9941 commit 1a17c89
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions progmgr/group.c
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,7 @@ LRESULT CALLBACK GroupWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa
case WM_LBUTTONDBLCLK:
{
LVHITTESTINFO lvhti = { 0 };
LVFINDINFO lvfi = { 0 };
LVITEM lvi = { 0 };
DWORD dwMessagePos = 0;
POINT pt = { 0 };
Expand Down Expand Up @@ -522,6 +523,7 @@ LRESULT CALLBACK GroupWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa
case NM_DBLCLK:
{
LVHITTESTINFO lvhti = { 0 };
LVFINDINFO lvfi = { 0 };
LVITEM lvi = { 0 };
DWORD dwMessagePos = 0;
POINT pt = { 0 };
Expand All @@ -543,8 +545,12 @@ LRESULT CALLBACK GroupWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa
ListView_HitTest(hWndListView, &lvhti);

// check we've selected an item
if (lvhti.iItem == -1)
return 0;
//if (lvhti.iItem < 0)
// return 0;

// we still have to get the listview item...
lvfi.flags = LVFI_NEARESTXY;
ListView_FindItem(hWndListView, 0, 0);

// since we have let's get the program item
ListView_GetItem(hWndListView, &lvi);
Expand Down

0 comments on commit 1a17c89

Please sign in to comment.