MCPcopy Create free account
hub / github.com/cinience/RedisStudio / SetScrollRange

Method SetScrollRange

DuiLib/Control/UIScrollBar.cpp:94–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92 }
93
94 void CScrollBarUI::SetScrollRange(int nRange)
95 {
96 if( m_nRange == nRange ) return;
97
98 m_nRange = nRange;
99 if( m_nRange < 0 ) m_nRange = 0;
100 if( m_nScrollPos > m_nRange ) m_nScrollPos = m_nRange;
101 SetPos(m_rcItem);
102 }
103
104 int CScrollBarUI::GetScrollPos() const
105 {

Callers 3

TxSetScrollRangeMethod · 0.80
SetPosMethod · 0.80
ProcessScrollBarMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected