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,

CodePudding user response:

reference 1st floor lyhoo163 response:
people because it USES a 32-bit integer, the maximum value is 65535,


Is there any way to break through the limit? When dynamic cycle to write the contents of the richedit control more and more long, scrolling is faster and faster, distress!

CodePudding user response:

His crown,
  • Related