Click here to Skip to main content
15,881,248 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: WM_MOUSEWHEEL message and the Touchpad Pin
Gerry Schmitz15-Jun-19 5:36
mveGerry Schmitz15-Jun-19 5:36 
GeneralRe: WM_MOUSEWHEEL message and the Touchpad Pin
Richard MacCutchan15-Jun-19 6:58
mveRichard MacCutchan15-Jun-19 6:58 
QuestionRe: WM_MOUSEWHEEL message and the Touchpad Pin
David Crow13-Jun-19 10:45
David Crow13-Jun-19 10:45 
AnswerRe: WM_MOUSEWHEEL message and the Touchpad Pin
Richard MacCutchan13-Jun-19 21:20
mveRichard MacCutchan13-Jun-19 21:20 
AnswerRe: WM_MOUSEWHEEL message and the Touchpad Pin
Richard MacCutchan14-Jun-19 1:03
mveRichard MacCutchan14-Jun-19 1:03 
AnswerRe: WM_MOUSEWHEEL message and the Touchpad Pin
Randor 14-Jun-19 0:31
professional Randor 14-Jun-19 0:31 
GeneralRe: WM_MOUSEWHEEL message and the Touchpad Pin
Richard MacCutchan14-Jun-19 0:55
mveRichard MacCutchan14-Jun-19 0:55 
PraiseRe: WM_MOUSEWHEEL message and the Touchpad Pin
Randor 14-Jun-19 2:00
professional Randor 14-Jun-19 2:00 
Richard MacCutchan wrote:
Thanks David, that works perfectly


Looks good, although I do see a minor issue with your latest code.

You are dropping the remainder without the modulo operation. Rather than setting your delta to zero you should keep the remainder after scrolling with:
C++
myDelta = myDelta % WHEEL_DELTA;

Such a precision loss is probably not a big deal for simply scrolling a text window. But let's make our code samples more correct.

Best Wishes,
-David Delaune
GeneralRe: WM_MOUSEWHEEL message and the Touchpad Pin
Richard MacCutchan14-Jun-19 3:07
mveRichard MacCutchan14-Jun-19 3:07 
QuestionC++ Callback process is dea Pin
Member 1422104112-Jun-19 23:05
Member 1422104112-Jun-19 23:05 
AnswerRe: C++ Callback process is dea Pin
Victor Nijegorodov12-Jun-19 23:18
Victor Nijegorodov12-Jun-19 23:18 
GeneralRe: C++ Callback process is dea Pin
Member 1422104112-Jun-19 23:48
Member 1422104112-Jun-19 23:48 
SuggestionRe: C++ Callback process is dea Pin
David Crow13-Jun-19 7:45
David Crow13-Jun-19 7:45 
GeneralRe: C++ Callback process is dea Pin
Victor Nijegorodov13-Jun-19 10:24
Victor Nijegorodov13-Jun-19 10:24 
QuestionProblem using strings Pin
Rodrigo Lourenço7-Jun-19 11:01
Rodrigo Lourenço7-Jun-19 11:01 
AnswerRe: Problem using strings Pin
Victor Nijegorodov7-Jun-19 11:26
Victor Nijegorodov7-Jun-19 11:26 
GeneralRe: Problem using strings Pin
Rodrigo Lourenço7-Jun-19 23:55
Rodrigo Lourenço7-Jun-19 23:55 
AnswerRe: Problem using strings Pin
k50547-Jun-19 11:39
mvek50547-Jun-19 11:39 
GeneralRe: Problem using strings Pin
Rodrigo Lourenço8-Jun-19 0:03
Rodrigo Lourenço8-Jun-19 0:03 
SuggestionRe: Problem using strings Pin
David Crow7-Jun-19 16:50
David Crow7-Jun-19 16:50 
GeneralRe: Problem using strings Pin
Rodrigo Lourenço8-Jun-19 0:02
Rodrigo Lourenço8-Jun-19 0:02 
AnswerRe: Problem using strings Pin
Joe Woodbury7-Jun-19 18:47
professionalJoe Woodbury7-Jun-19 18:47 
GeneralRe: Problem using strings Pin
Rodrigo Lourenço7-Jun-19 23:59
Rodrigo Lourenço7-Jun-19 23:59 
AnswerRe: Problem using strings Pin
Richard MacCutchan7-Jun-19 21:52
mveRichard MacCutchan7-Jun-19 21:52 
GeneralRe: Problem using strings Pin
Rodrigo Lourenço8-Jun-19 0:00
Rodrigo Lourenço8-Jun-19 0:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.