MCPcopy Create free account
hub / github.com/acl-dev/acl / SetPos

Method SetPos

app/net_tools/ui/MeterCtrl.cpp:119–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119UINT CMeterCtrl::SetPos(UINT nPos)
120{
121 ASSERT(nPos >= m_nLower && nPos <= m_nUpper);
122
123 UINT nRange = m_nUpper - m_nLower;
124 UINT nOld = m_nPos;
125 m_nPos = nPos;
126
127 m_sCaption.Format("%d%% (%d)", ((m_nPos - m_nLower) * 100)/ nRange, m_nPos);
128 InvalidateMeater();
129
130 return nOld;
131}
132
133void CMeterCtrl::SetRange(UINT nLower, UINT nUpper)
134{

Callers 7

upload_reportMethod · 0.45
nslookup_reportMethod · 0.45
ping_reportMethod · 0.45
smtp_reportMethod · 0.45
pop3_reportMethod · 0.45
test_reportMethod · 0.45
OnCreateMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_reportMethod · 0.36