Lines Matching refs:top_index
527 int top_index = mpPaletteFrame->GetTopIndex(); in Scroll() local
532 top_index += deltaPos; in Scroll()
534 if (top_index < 0) in Scroll()
536 top_index = 0; in Scroll()
540 if (top_index + VISIBLE_PALETTE_ROWS > 256) in Scroll()
542 top_index = 256 - VISIBLE_PALETTE_ROWS; in Scroll()
545 if (top_index != mpPaletteFrame->GetTopIndex()) in Scroll()
547 mpPaletteFrame->SetTopIndex(top_index); in Scroll()
548 ::SetScrollPos(mPalIndexScroll.GetSafeHwnd(), SB_CTL, top_index, TRUE); in Scroll()
558 int top_index = mpPaletteFrame->GetTopIndex(); in OnVScroll() local
584 deltaPos = nPos - top_index; in OnVScroll()
589 deltaPos = nPos - top_index; in OnVScroll()