diff options
| author | Pietro Gagliardi <[email protected]> | 2014-04-29 12:18:09 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-04-29 12:18:09 -0400 |
| commit | 86c95f40aa9a52b7711ac322b5f8aa2d49af19f2 (patch) | |
| tree | f120fa8bba10336c85d84e5ee2ace7ce8c42f8d7 /area_windows.go | |
| parent | 3e047ba17441c85fcbad8a74fc86d086e173ebc6 (diff) | |
Fixed other problems with Windows Area scrollbars (after going through Raymond Chen's scrollbar series), added some more future plans, and fixed one of the scrollbar series links (which was accidentally miscopied).
Diffstat (limited to 'area_windows.go')
| -rw-r--r-- | area_windows.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/area_windows.go b/area_windows.go index be31c80..151e7df 100644 --- a/area_windows.go +++ b/area_windows.go @@ -328,8 +328,8 @@ func scrollArea(s *sysData, wparam _WPARAM, which uintptr) { case _SB_PAGERIGHT: // also _SB_PAGEDOWN newpos += pagesize case _SB_THUMBPOSITION: - // TODO is this the same as SB_THUMBTRACK instead? MSDN says use of thumb pos is only for that one - // do nothing; newpos already has the thumb's position + // raymond chen says to just set the newpos to the SCROLLINFO nPos for this message; see http://blogs.msdn.com/b/oldnewthing/archive/2003/07/31/54601.aspx and http://blogs.msdn.com/b/oldnewthing/archive/2003/08/05/54602.aspx + // do nothing here; newpos already has nPos case _SB_THUMBTRACK: newpos = si.nTrackPos } // otherwise just keep the current position (that's what MSDN example code says, anyway) |
