Click here to Skip to main content
15,920,383 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionAn easy way to embed flash swf files in C++/MFC .exe? Pin
CryHaven7-Oct-07 8:16
CryHaven7-Oct-07 8:16 
Questionmulti threading Pin
locoone7-Oct-07 7:36
locoone7-Oct-07 7:36 
AnswerRe: multi threading Pin
Mark Salsbery7-Oct-07 8:06
Mark Salsbery7-Oct-07 8:06 
GeneralRe: multi threading Pin
locoone7-Oct-07 9:28
locoone7-Oct-07 9:28 
GeneralRe: multi threading Pin
Mark Salsbery7-Oct-07 9:32
Mark Salsbery7-Oct-07 9:32 
JokeRe: multi threading Pin
Nelek7-Oct-07 21:01
protectorNelek7-Oct-07 21:01 
QuestionClient FTP error code 12029 Pin
dev246-Oct-07 16:02
dev246-Oct-07 16:02 
QuestionScrollBar movement by per click Pin
s196675m6-Oct-07 14:35
s196675m6-Oct-07 14:35 
I have view class derived from CScrollView
I set scroll size to ( 0 1999) means total size 2000
When I click on the right or left arrowhead of horizontal scrollbar, it moves to some predetermind number left or right.

What I want is, when I will click any of the arrow head it should move only 4 point left or right. It tried to implement in OnHScroll by using SetScrollPos method. It works for sometime when per click move is higher than some unknown number, when I set perclick move to 4 point, it just ignore it and move to predetermind number per click.

Is there any limitation that it should move atleast to some minimum number per click and if the number set below the minimum number, it just ignore.

Do you any idea how I can set per click move to 4 point.
==============================
int nTemp1, nTemp2;
//int nMax = 1999; just assume it is there
//int nMin = 0;
nTemp1 = GetScrollPos(SB_HORZ);
switch(nSBCode) {
case SB_THUMBPOSITION:
SetScrollPos(SB_HORZ,nPos);
break;
case SB_LINELEFT: // left arrow button
nTemp2 = (nMax - nMin) / 500; //when I set 50, 75, 100, i see the difference
// when I set 500, it don't work, and used default one
if ((nTemp1 - nTemp2) > nMin) {
nTemp1 -= nTemp2;
}
else {
nTemp1 = nMin;
}
SetScrollPos(SB_HORZ,nTemp1);
break;
case SB_LINERIGHT: // right arrow button
nTemp2 = (nMax - nMin) / 500; // same as above comment
if ((nTemp1 + nTemp2) < nMax) {
nTemp1 += nTemp2;
}
else {
nTemp1 = nMax;
}
SetScrollPos(SB_HORZ,nTemp1);
break;
}
============================


msc
AnswerRe: ScrollBar movement by per click Pin
Mark Salsbery7-Oct-07 5:46
Mark Salsbery7-Oct-07 5:46 
QuestionConvert HTML to XHTML Pin
Peishan, Wu6-Oct-07 5:50
Peishan, Wu6-Oct-07 5:50 
AnswerRe: Convert HTML to XHTML Pin
George L. Jackson6-Oct-07 7:37
George L. Jackson6-Oct-07 7:37 
QuestionScroll bars with CStatic Pin
shivrajbhosale6-Oct-07 0:08
shivrajbhosale6-Oct-07 0:08 
QuestionRe: Scroll bars with CStatic Pin
chandu0046-Oct-07 0:11
chandu0046-Oct-07 0:11 
AnswerRe: Scroll bars with CStatic Pin
shivrajbhosale6-Oct-07 0:22
shivrajbhosale6-Oct-07 0:22 
AnswerRe: Scroll bars with CStatic Pin
Hamid_RT6-Oct-07 1:32
Hamid_RT6-Oct-07 1:32 
GeneralRe: Scroll bars with CStatic Pin
shivrajbhosale7-Oct-07 21:40
shivrajbhosale7-Oct-07 21:40 
GeneralRe: Scroll bars with CStatic Pin
Hamid_RT8-Oct-07 2:52
Hamid_RT8-Oct-07 2:52 
QuestionTerminating Worker Thread from my UI thread causing problem? Pin
sanjudeepu5-Oct-07 21:13
sanjudeepu5-Oct-07 21:13 
AnswerRe: Terminating Worker Thread from my UI thread causing problem? Pin
chandu0045-Oct-07 22:16
chandu0045-Oct-07 22:16 
GeneralRe: Terminating Worker Thread from my UI thread causing problem? Pin
sanjudeepu5-Oct-07 23:25
sanjudeepu5-Oct-07 23:25 
GeneralRe: Terminating Worker Thread from my UI thread causing problem? Pin
chandu0046-Oct-07 0:05
chandu0046-Oct-07 0:05 
AnswerRe: Terminating Worker Thread from my UI thread causing problem? Pin
Mark Salsbery6-Oct-07 7:31
Mark Salsbery6-Oct-07 7:31 
QuestionImage or Bitmap Pin
sujtha5-Oct-07 20:26
sujtha5-Oct-07 20:26 
AnswerRe: Image or Bitmap Pin
Hamid_RT5-Oct-07 20:51
Hamid_RT5-Oct-07 20:51 
AnswerRe: how to use Internetfindnextfile Pin
David Crow6-Oct-07 3:38
David Crow6-Oct-07 3:38 

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.