Click here to Skip to main content
15,921,179 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Draw controls in Property Sheet Pin
Galatei22-Nov-06 3:42
Galatei22-Nov-06 3:42 
GeneralRe: Draw controls in Property Sheet Pin
Susanmat22-Nov-06 20:37
Susanmat22-Nov-06 20:37 
Questioncomponent(Borland C++) Pin
lightchin22-Nov-06 1:15
lightchin22-Nov-06 1:15 
QuestionSending mail without specifying SMTP server [modified] Pin
Mahesh Kulkarni22-Nov-06 1:05
Mahesh Kulkarni22-Nov-06 1:05 
AnswerRe: Sending mail without specifying SMTP server Pin
Galatei22-Nov-06 3:55
Galatei22-Nov-06 3:55 
GeneralRe: Sending mail without specifying SMTP server Pin
Mahesh Kulkarni22-Nov-06 17:49
Mahesh Kulkarni22-Nov-06 17:49 
QuestionSCROLLINFO.nPage Pin
cartman0921-Nov-06 23:32
cartman0921-Nov-06 23:32 
AnswerRe: SCROLLINFO.nPage Pin
CPallini21-Nov-06 23:57
mveCPallini21-Nov-06 23:57 
As stated in MSDN:
nPage 
      Specifies the page size. A scroll bar uses this value to determine the 
      appropriate size of the proportional scroll box. 

I think that the following excerpt of MSDN sample Example of Scrolling Text makes it clearer:

case WM_SIZE: 
 
        // Retrieve the dimensions of the client area. 
 
        yClient = HIWORD (lParam); 
        xClient = LOWORD (lParam); 
 
        // Determine the maximum vertical scrolling position. 
        // The two is added for extra space below the lines 
        // of text. 
 
        yMax = max (0, LINES + 2 - yClient/yChar); 
 
        // Make sure the current vertical scrolling position 
        // does not exceed the maximum. 
 
        yPos = min (yPos, yMax); 
 
        // Adjust the vertical scrolling range and scroll box 
        // position to reflect the new yMax and yPos values. 
 
        si.cbSize = sizeof(si); 
        si.fMask  = SIF_RANGE | SIF_PAGE | SIF_POS; 
        si.nMin   = 0; 
        si.nMax   = yMax; 
        si.nPage  = yClient / yChar; 
        si.nPos   = yPos; 
        SetScrollInfo(hwnd, SB_VERT, &si, TRUE); 


As you can see, after setting up the scroll range, you should give a clue of the VISIBLE range (your client area) so that the scroll box will have reasonable dimensions.

Hope that helps.
GeneralRe: SCROLLINFO.nPage Pin
cartman0922-Nov-06 3:11
cartman0922-Nov-06 3:11 
GeneralRe: SCROLLINFO.nPage Pin
CPallini22-Nov-06 4:05
mveCPallini22-Nov-06 4:05 
QuestionProgram release with CRT library problem Pin
LiYS21-Nov-06 23:20
LiYS21-Nov-06 23:20 
Questionis this the right way or is there any other better way??? Pin
vijay_aroli21-Nov-06 22:41
vijay_aroli21-Nov-06 22:41 
AnswerRe: is this the right way or is there any other better way??? Pin
Galatei22-Nov-06 3:49
Galatei22-Nov-06 3:49 
QuestionProgram To Recover Email? Pin
Navin C21-Nov-06 22:06
Navin C21-Nov-06 22:06 
AnswerRe: Program To Recover Email? Pin
Galatei21-Nov-06 22:27
Galatei21-Nov-06 22:27 
GeneralRe: Program To Recover Email? Pin
Navin C21-Nov-06 22:57
Navin C21-Nov-06 22:57 
GeneralRe: Program To Recover Email? Pin
Galatei22-Nov-06 4:01
Galatei22-Nov-06 4:01 
GeneralRe: Program To Recover Email? Pin
Navin C22-Nov-06 18:54
Navin C22-Nov-06 18:54 
Questionhow to sort the list box Items? Pin
ashokbngr21-Nov-06 22:02
ashokbngr21-Nov-06 22:02 
AnswerRe: how to sort the list box Items? Pin
CPallini21-Nov-06 22:12
mveCPallini21-Nov-06 22:12 
AnswerRe: how to sort the list box Items? Pin
peterchen21-Nov-06 22:12
peterchen21-Nov-06 22:12 
QuestionI need stlport_vc6.lib Pin
Dudi Avramov21-Nov-06 21:59
Dudi Avramov21-Nov-06 21:59 
AnswerRe: I need stlport_vc6.lib Pin
Bob Flynn21-Nov-06 22:27
Bob Flynn21-Nov-06 22:27 
QuestionMultithreading in used sockets [modified] Pin
__codeproject21-Nov-06 21:46
__codeproject21-Nov-06 21:46 
AnswerRe: Multithreading in used sockets Pin
Galatei22-Nov-06 4:07
Galatei22-Nov-06 4:07 

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.