Date: 02-16-2022
Return to Index
created by gbSnippets
' there's a iScrollHeight member for horizontal scrollbars too..
LOCAL oldWidth AS LONG, ncm AS NONCLIENTMETRICS
ncm.cbSize = SIZEOF(NONCLIENTMETRICS)
SystemParametersInfo(%SPI_GETNONCLIENTMETRICS, SIZEOF(NONCLIENTMETRICS), ncm, 0)
oldWidth = ncm.iScrollWidth
ncm.iScrollWidth = 2 * ncm.iScrollWidth
SystemParametersInfo(%SPI_SETNONCLIENTMETRICS, SIZEOF(NONCLIENTMETRICS), ncm, 0)
MSGBOX "Looks good? Time to reset width."
ncm.iScrollWidth = oldWidth
SystemParametersInfo(%SPI_SETNONCLIENTMETRICS, SIZEOF(NONCLIENTMETRICS), ncm, 0)
http://www.garybeene.com/sw/gbsnippets.htm