Fixed cancels editing of a listview label if the listview is
scrolled.
This commit is contained in:
parent
edf1fd7158
commit
4de47040fd
|
@ -7701,10 +7701,13 @@ static LRESULT LISTVIEW_VScroll(HWND hwnd, INT nScrollCode, SHORT nCurrentPos,
|
|||
{
|
||||
SCROLLINFO scrollInfo;
|
||||
|
||||
LISTVIEW_INFO *infoPtr = (LISTVIEW_INFO *)GetWindowLongA(hwnd, 0);
|
||||
SendMessageA(infoPtr->hwndEdit, WM_KILLFOCUS, 0, 0);
|
||||
|
||||
ZeroMemory(&scrollInfo, sizeof(SCROLLINFO));
|
||||
scrollInfo.cbSize = sizeof(SCROLLINFO);
|
||||
scrollInfo.fMask = SIF_PAGE | SIF_POS | SIF_RANGE;
|
||||
|
||||
|
||||
if (GetScrollInfo(hwnd, SB_VERT, &scrollInfo) != FALSE)
|
||||
{
|
||||
INT nOldScrollPos = scrollInfo.nPos;
|
||||
|
@ -7793,6 +7796,10 @@ static LRESULT LISTVIEW_HScroll(HWND hwnd, INT nScrollCode, SHORT nCurrentPos,
|
|||
{
|
||||
SCROLLINFO scrollInfo;
|
||||
|
||||
LISTVIEW_INFO *infoPtr = (LISTVIEW_INFO *)GetWindowLongA(hwnd, 0);
|
||||
SendMessageA(infoPtr->hwndEdit, WM_KILLFOCUS, 0, 0);
|
||||
|
||||
|
||||
ZeroMemory(&scrollInfo, sizeof(SCROLLINFO));
|
||||
scrollInfo.cbSize = sizeof(SCROLLINFO);
|
||||
scrollInfo.fMask = SIF_PAGE | SIF_POS | SIF_RANGE;
|
||||
|
|
Loading…
Reference in New Issue