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

Method OnScrollIncrementLoRes

GTE/Applications/MSW/Window.cpp:125–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125int32_t Window::OnScrollIncrementLoRes(int32_t bar)
126{
127 SCROLLINFO& info = mScrollInfo[bar];
128 info.fMask = SIF_POS;
129 GetScrollInfo(mHandle, bar, &info);
130 int32_t delta = info.nMax - info.nPos;
131 if (delta > 0)
132 {
133 delta = std::min(delta, mScrollLoResDelta[bar]);
134 info.nPos += delta;
135 SetScrollInfo(mHandle, bar, &info, TRUE);
136 }
137 return delta;
138}
139
140int32_t Window::OnScrollDecrementLoRes(int32_t bar)
141{

Callers 1

WindowProcedureMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected