Home > Back-end > Richedit scrollbar maximum range
Richedit scrollbar maximum range
Time:10-04
Consult everybody warrior, adopts the following method to obtain richedit the maximum range of a scroll bar: ScrollInfo. CbSize:=SizeOf (ScrollInfo); ScrollInfo. FMask:=SIF_ALL; GetScrollInfo (RichEdit1. Handle, SB_VERT ScrollInfo); But why ScrollInfo. NMax maximum value is 65535?
CodePudding user response:
Because it USES a 32-bit integer, the maximum value is 65535,