Click here to Skip to main content
15,922,630 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionOLE And Powerpoint Using Non MFC Pin
Soumyadipta22-Nov-07 22:33
Soumyadipta22-Nov-07 22:33 
AnswerRe: OLE And Powerpoint Using Non MFC Pin
Jhony george22-Nov-07 23:26
Jhony george22-Nov-07 23:26 
GeneralRe: OLE And Powerpoint Using Non MFC Pin
Soumyadipta26-Nov-07 0:44
Soumyadipta26-Nov-07 0:44 
GeneralRe: OLE And Powerpoint Using Non MFC Pin
Jhony george26-Nov-07 22:49
Jhony george26-Nov-07 22:49 
QuestionHow to make VertScrolling a litle bit faster? Pin
josip cagalj22-Nov-07 22:13
josip cagalj22-Nov-07 22:13 
AnswerRe: How to make VertScrolling a litle bit faster? Pin
Nelek22-Nov-07 23:49
protectorNelek22-Nov-07 23:49 
GeneralRe: How to make VertScrolling a litle bit faster? Pin
josip cagalj23-Nov-07 0:18
josip cagalj23-Nov-07 0:18 
GeneralRe: How to make VertScrolling a litle bit faster? Pin
Nelek25-Nov-07 21:16
protectorNelek25-Nov-07 21:16 
The SB_LINEUP/DOWN is exactly what you say. And it comes from the SetScrollSizes, more or less 1/100 of the size.cy.

But what I said... is to get the WM_MOUSEWHEEL and multiply this SB_LINEUP with a coeficient. In order to make more than one line on each movement.

By default:
OnMouseWheel ()
{
  if you are scrolling up
	OnVScroll(SB_LINEUP, 0, NULL);

  else
	OnVScroll(SB_LINEDOWN, 0, NULL);	
}


And what I am telling
OnMouseWheel ()
{
  if you are scrolling up
	OnVScroll( 3 * SB_LINEUP, 0, NULL);

  else
	OnVScroll( 3 * SB_LINEDOWN, 0, NULL);	
}


with this you can use the normal Line size to Up/Down keys (for example) scrolling with accuracy, but do it faster with the mouse wheel. I you change the size of the line (another very good solution) then you will ALWAYS have that scroll velocity.

It is up to you and the needs of your project.

Greetings.

--------
M.D.V. Wink | ;)

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson

GeneralRe: How to make VertScrolling a litle bit faster? Pin
josip cagalj25-Nov-07 22:13
josip cagalj25-Nov-07 22:13 
GeneralRe: How to make VertScrolling a litle bit faster? Pin
josip cagalj26-Nov-07 22:06
josip cagalj26-Nov-07 22:06 
AnswerRe: How to make VertScrolling a litle bit faster? Pin
Iain Clarke, Warrior Programmer23-Nov-07 5:27
Iain Clarke, Warrior Programmer23-Nov-07 5:27 
QuestionMoving a window Pin
kk.tvm22-Nov-07 19:05
kk.tvm22-Nov-07 19:05 
AnswerRe: Moving a window Pin
Hamid_RT22-Nov-07 19:12
Hamid_RT22-Nov-07 19:12 
AnswerRe: Moving a window Pin
chandu00422-Nov-07 19:56
chandu00422-Nov-07 19:56 
AnswerRe: Moving a window Pin
kk.tvm22-Nov-07 21:09
kk.tvm22-Nov-07 21:09 
GeneralRe: Moving a window Pin
pierre_ribery22-Nov-07 21:19
pierre_ribery22-Nov-07 21:19 
GeneralRe: Moving a window Pin
ovidiucucu22-Nov-07 22:33
ovidiucucu22-Nov-07 22:33 
GeneralRe: Moving a window Pin
kk.tvm23-Nov-07 19:51
kk.tvm23-Nov-07 19:51 
GeneralRe: Moving a window Pin
Marimuthu.r22-Nov-07 22:38
Marimuthu.r22-Nov-07 22:38 
QuestionMemory allocation related query Pin
Sunil Shindekar22-Nov-07 19:03
Sunil Shindekar22-Nov-07 19:03 
AnswerRe: Memory allocation related query Pin
ovidiucucu22-Nov-07 19:45
ovidiucucu22-Nov-07 19:45 
GeneralRe: Memory allocation related query Pin
Sunil Shindekar22-Nov-07 20:13
Sunil Shindekar22-Nov-07 20:13 
AnswerRe: Memory allocation related query [modified] Pin
ovidiucucu22-Nov-07 21:25
ovidiucucu22-Nov-07 21:25 
AnswerRe: Memory allocation related query Pin
KarstenK22-Nov-07 20:35
mveKarstenK22-Nov-07 20:35 
GeneralRe: Memory allocation related query Pin
Sunil Shindekar22-Nov-07 20:43
Sunil Shindekar22-Nov-07 20:43 

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.