Click here to Skip to main content
15,914,074 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionboot time detection Pin
emmi23-Mar-06 2:38
emmi23-Mar-06 2:38 
AnswerRe: boot time detection Pin
PJ Arends23-Mar-06 6:54
professionalPJ Arends23-Mar-06 6:54 
GeneralRe: boot time detection Pin
Alexander M.,23-Mar-06 10:08
Alexander M.,23-Mar-06 10:08 
QuestionMonth Calander Pin
mcsherry23-Mar-06 2:25
mcsherry23-Mar-06 2:25 
AnswerRe: Month Calander Pin
Ștefan-Mihai MOGA23-Mar-06 2:58
professionalȘtefan-Mihai MOGA23-Mar-06 2:58 
GeneralRe: Month Calander Pin
mcsherry23-Mar-06 3:05
mcsherry23-Mar-06 3:05 
QuestionScrolling issue Pin
anilksingh23-Mar-06 2:21
anilksingh23-Mar-06 2:21 
AnswerRe: Scrolling issue Pin
Waldermort23-Mar-06 2:38
Waldermort23-Mar-06 2:38 
Have a look on MSDN for the SCROLLINFO structure. This will enable you to set the min and max limits of the scroll bar and the thumb size. A combination of nPage and nMax will give you the desired result.

For example,
SCROLLINFO si;
si.cbSize = sizeof(SCROLLINFO);
si.fMask = SIF_PAGE|SIF_RANGE|SIF_POS;
si.nPage = 5;
si.nMin = 0;
si.nMax = 9;
si.nPos = 0;
SetScrollInfo(hHscroll,SB_CTL,&si,TRUE);

nMax will set the scrollbar to be able to move 10 spaces, but nPage takes up 5 of these spaces, meaning that the scrollbar is only able to scroll the remaining 5.

In your project you should set those values according to the data you want to display. You must also process the default scrollbar messages and check the values against your display data. make use of the min() and max().
GeneralRe: Scrolling issue Pin
anilksingh23-Mar-06 17:53
anilksingh23-Mar-06 17:53 
QuestionUrgent help required !!! Pin
seekin_nirvana23-Mar-06 2:13
seekin_nirvana23-Mar-06 2:13 
AnswerRe: Urgent help required !!! Pin
Cedric Moonen23-Mar-06 2:25
Cedric Moonen23-Mar-06 2:25 
Answer[Message Deleted] Pin
seekin_nirvana23-Mar-06 3:05
seekin_nirvana23-Mar-06 3:05 
AnswerRe: Urgent help required !!! Pin
seekin_nirvana23-Mar-06 3:10
seekin_nirvana23-Mar-06 3:10 
AnswerRe: Urgent help required !!! Pin
seekin_nirvana23-Mar-06 3:14
seekin_nirvana23-Mar-06 3:14 
GeneralRe: Urgent help required !!! Pin
Waldermort23-Mar-06 3:23
Waldermort23-Mar-06 3:23 
GeneralRe: Urgent help required !!! Pin
Cedric Moonen23-Mar-06 3:12
Cedric Moonen23-Mar-06 3:12 
GeneralRe: Urgent help required !!! Pin
seekin_nirvana23-Mar-06 3:35
seekin_nirvana23-Mar-06 3:35 
GeneralRe: Urgent help required !!! Pin
Cedric Moonen23-Mar-06 3:40
Cedric Moonen23-Mar-06 3:40 
GeneralRe: Urgent help required !!! Pin
Justin Tay23-Mar-06 3:57
Justin Tay23-Mar-06 3:57 
AnswerRe: Urgent help required !!! Pin
Stephen Hewitt23-Mar-06 11:59
Stephen Hewitt23-Mar-06 11:59 
QuestionDialog callback function Pin
Waldermort23-Mar-06 2:09
Waldermort23-Mar-06 2:09 
AnswerRe: Dialog callback function Pin
PJ Arends23-Mar-06 7:10
professionalPJ Arends23-Mar-06 7:10 
GeneralRe: Dialog callback function Pin
Waldermort23-Mar-06 7:40
Waldermort23-Mar-06 7:40 
Questionrelated shellexecute function Pin
baldha rakesh23-Mar-06 2:01
baldha rakesh23-Mar-06 2:01 
AnswerRe: related shellexecute function Pin
toxcct23-Mar-06 2:12
toxcct23-Mar-06 2:12 

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.