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

Method SetPos

lib_acl_cpp/samples/gui_rpc/ui/MeterCtrl.cpp:118–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 7

OnInitDialogMethod · 0.45
OnBnClickedStartGetMethod · 0.45
OnBnClickedResetMethod · 0.45
SetBodyLengthMethod · 0.45
OnBnClickedClearMethod · 0.45
OnDownloadingMethod · 0.45
OnCreateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected