如何得到如Memo中的滚动条(包括V和H两个方向)的句柄(或信息)(100分)

T

toli

Unregistered / Unconfirmed
GUEST, unregistred user!
如何得到如Memo(RichEdit etc)中的滚动条(包括V和H两个方向)的句柄(或信息)
 
GetScrollInfo(RichEdit.Handle, SB_HORZ, lpsi); // 水平
GetScrollInfo(RichEdit.Handle, SB_VERT, lpsi); // 垂直
返回的 lpsi 是一个结构体,包含了滚动条的信息:
lpsi

Points to a SCROLLINFO structure whose fMask member, upon entry to the function,
specifies the scroll bar parameters to retrieve. Before returning, the function
copies the specified parameters to the appropriate members of the structure.
The fMask member can be a combination of the following values:

Value Meaning
SIF_PAGE Copies the scroll page to the nPage member of the SCROLLINFO
structure pointed to by lpsi.
SIF_POS Copies the scroll position to the nPos member of the SCROLLINFO
structure pointed to by lpsi.
SIF_RANGE Copies the scroll range to the nMin and nMax members of the SCROLLINFO
structure pointed to by lpsi.
 
没有人知道吗?
我的目的是要得到它的PAINT事件,来屏蔽之!!
 
难道不可以设置滚动条为无?
还是想自己画一个?
 
看来真的很难?
 

Similar threads

S
回复
0
查看
987
SUNSTONE的Delphi笔记
S
S
回复
0
查看
805
SUNSTONE的Delphi笔记
S
S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
顶部