判断是否滚动条

var  
  Style:   Integer;
begin
  Style := GetWindowLong(Handle, GWL_STYLE);//wnd为控件句柄
  if (Style and (WS_VSCROLL)) <> 0 then
    Caption := 'Yes'
  else
    Caption := 'No';
end;
posted @ 2009-06-08 11:32  谭志宇  阅读(195)  评论(0编辑  收藏  举报