Explorar o código

reset scroll back to 0 when refilling list, before it could get scrolled to the right and look empty

ScottBrogden %!s(int64=8) %!d(string=hai) anos
pai
achega
5a1ed81dd9
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      QPasteWnd.cpp

+ 4 - 0
QPasteWnd.cpp

@@ -5379,6 +5379,10 @@ void CQPasteWnd::OnUpdateMenuNewclip(CCmdUI *pCmdUI)
 
 LRESULT CQPasteWnd::OnSetListCount(WPARAM wParam, LPARAM lParam)
 {
+	int x = m_lstHeader.GetScrollPos(SB_HORZ);
+	int y = m_lstHeader.GetScrollPos(SB_VERT);
+	m_lstHeader.Scroll(CSize(-x, -y));
+
     m_lstHeader.SetItemCountEx((int)wParam);
 	SelectFocusID();
     UpdateStatus(false);