首页  编辑  

判断Grid是否有滚动条

Tags: /超级猛料/VCL/Grid控件/   Date Created:

判断Grid是否有滚动条?

if (GetWindowlong(Stringgrid1.Handle, GWL_STYLE) and WS_VSCROLL) <> 0 then

 ShowMessage('Vertical scrollbar is visible!');

if (GetWindowlong(Stringgrid1.Handle, GWL_STYLE) and WS_HSCROLL) <> 0 then

 ShowMessage('Horizontal scrollbar is visible!');