Click here to Skip to main content
15,909,205 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CRuntimeClass - basic question - class access?? Pin
Mark Salsbery27-Nov-07 8:04
Mark Salsbery27-Nov-07 8:04 
AnswerRe: CRuntimeClass - basic question - class access?? Pin
led mike27-Nov-07 7:34
led mike27-Nov-07 7:34 
GeneralRe: CRuntimeClass - basic question - class access?? Pin
Vaclav_27-Nov-07 7:49
Vaclav_27-Nov-07 7:49 
GeneralOfftopic Pin
Nelek27-Nov-07 21:55
protectorNelek27-Nov-07 21:55 
GeneralRe: Offtopic Pin
Vaclav_28-Nov-07 6:43
Vaclav_28-Nov-07 6:43 
QuestionVScroll - speed up Pin
josip cagalj27-Nov-07 3:54
josip cagalj27-Nov-07 3:54 
QuestionRe: VScroll - speed up Pin
Nelek27-Nov-07 4:04
protectorNelek27-Nov-07 4:04 
QuestionWhat are you doing, man? Pin
CPallini27-Nov-07 4:17
mveCPallini27-Nov-07 4:17 
What are you doing, man?
josip cagalj wrote:
if (zDelta>0)
OnVScroll(3*SB_LINEUP,pos,NULL);
else if (zDelta<0)
OnVScroll(3*SB_LINEDOWN,pos,NULL);


Since (see winuser.h)
...
#define SB_LINEUP           0
#define SB_LINELEFT         0
#define SB_LINEDOWN         1
#define SB_LINERIGHT        1
#define SB_PAGEUP           2
#define SB_PAGELEFT         2
#define SB_PAGEDOWN         3
...


3*SB_LINEUP evaluates to SB_LINEUP itself.
while
SB_LINEDOWN evaluates to SB_PAGEDOWN.

Moving the wheel, you scroll a line up, a page down.

Big Grin | :-D


If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

AnswerRe: What are you doing, man? Pin
Nelek27-Nov-07 21:48
protectorNelek27-Nov-07 21:48 
GeneralRe: What are you doing, man? Pin
CPallini27-Nov-07 22:09
mveCPallini27-Nov-07 22:09 
GeneralRe: What are you doing, man? Pin
Nelek27-Nov-07 22:27
protectorNelek27-Nov-07 22:27 
GeneralRe: What are you doing, man? Pin
CPallini27-Nov-07 23:44
mveCPallini27-Nov-07 23:44 
GeneralRe: What are you doing, man? Pin
Nelek28-Nov-07 1:44
protectorNelek28-Nov-07 1:44 
GeneralRe: What are you doing, man? Pin
CPallini28-Nov-07 2:24
mveCPallini28-Nov-07 2:24 
GeneralRe: What are you doing, man? (secondary question solved) Pin
Nelek28-Nov-07 3:05
protectorNelek28-Nov-07 3:05 
GeneralRe: What are you doing, man? (secondary question solved) Pin
CPallini28-Nov-07 3:33
mveCPallini28-Nov-07 3:33 
AnswerRe: VScroll - speed up Pin
josip cagalj27-Nov-07 22:37
josip cagalj27-Nov-07 22:37 
GeneralRe: VScroll - speed up Pin
Nelek27-Nov-07 23:13
protectorNelek27-Nov-07 23:13 
AnswerRe: VScroll - speed up Pin
josip cagalj27-Nov-07 23:49
josip cagalj27-Nov-07 23:49 
Questionbasic type conversions Pin
Joezer BH27-Nov-07 3:50
professionalJoezer BH27-Nov-07 3:50 
AnswerRe: basic type conversions Pin
Maximilien27-Nov-07 3:55
Maximilien27-Nov-07 3:55 
AnswerRe: basic type conversions Pin
CPallini27-Nov-07 4:04
mveCPallini27-Nov-07 4:04 
AnswerRe: basic type conversions Pin
led mike27-Nov-07 4:35
led mike27-Nov-07 4:35 
JokeRe: basic type conversions Pin
toxcct27-Nov-07 5:56
toxcct27-Nov-07 5:56 
JokeRe: basic type conversions Pin
led mike27-Nov-07 6:11
led mike27-Nov-07 6:11 

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.