MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / OnScrollDecrementLoRes

Method OnScrollDecrementLoRes

GTE/Applications/MSW/Window.cpp:140–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140int32_t Window::OnScrollDecrementLoRes(int32_t bar)
141{
142 SCROLLINFO& info = mScrollInfo[bar];
143 info.fMask = SIF_POS;
144 GetScrollInfo(mHandle, bar, &info);
145 int32_t delta = info.nPos - info.nMin;
146 if (delta > 0)
147 {
148 delta = std::min(delta, mScrollLoResDelta[bar]);
149 info.nPos -= delta;
150 SetScrollInfo(mHandle, bar, &info, TRUE);
151 }
152 return delta;
153}
154
155int32_t Window::OnScrollIncrementHiRes(int32_t bar)
156{

Callers 1

WindowProcedureMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected