Home > Software engineering >  SetscrollInfo () function learning for help
SetscrollInfo () function learning for help

Time:09-28

Just started learning Windows programming, have the following question, to everyone a great god for help:

As shown in figure, here to set up a vertical scroll bar parameters, invoke the SetscrollInfo () function, then set the horizontal scroll bar parameters, then the assignment before the parameters of a vertical scroll bar will be overwritten? Behind the use of GetScrollInfo (HWND SB_VERT, & amp; Si) got the vertical scroll bar number?

SetscrollInfo here don't quite understand what is going on () what is behind the calls to this function is not used & amp; The inside of the si data?

Still say SetscrollInfo (HWND SB_VERT, & amp; Si, TRUE) and SetscrollInfo (HWND SB_HORZ, & amp; Si, TRUE), respectively, the data stored in the two different structure of si? (I think I should not, because the two references are the same si structure)

We should be grateful for the great god

CodePudding user response:

One is SB_VERT, one is SB_HORZ therefore won't cover, because here the passed parameter types, so just use the same variable

CodePudding user response:

Si has always been the same structure, two consecutive assignment will take cover for the first time, but in the cover has been set up before the vertical scroll bar, so is not the same as the two attributes of the scrollbar

So: the scroll bar is two completely different scrollbar, and si variable has always been the same, only two different assignments

CodePudding user response:

Check the MSDN is one of the Windows programmer must master the skills,

CodePudding user response:

Try to solve most of the questions, you can try in two variables
  • Related