` 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 23, 2024, 11:12 pm
This article has been viewed/printed 35394 times.