` Printed Icetips Article

Icetips Article



Par2: Calculate scroll bat widths
2013-11-04 -- Lee White
 
Which scrollbar, vertical or horizontal?

  MODULE('Windows APIs')
    _GetSystemMetrics(SIGNED),SIGNED,PASCAL,NAME('GetSystemMetrics')
  END

SM_CXVSCROLL        EQUATE(2)
SM_CYHSCROLL        EQUATE(3)

VScrollWidth        SIGNED
HScrollHeight       SIGNED

  CODE
  VScrollWidth  = _GetSystemMetrics(SM_CXVSCROLL)
  HScrollHeight = _GetSystemMetrics(SM_CYHSCROLL)



Printed November 21, 2024, 7:31 am
This article has been viewed/printed 35391 times.