delphi 判断是否出现滚动条

delphi 判断是否出现滚动条  

 
  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!');
 
 
 




posted @ 2014-07-29 18:26  XE2011  阅读(431)  评论(0编辑  收藏  举报