diff win/dw.c @ 843:d51e958aad95

Updates to the comments about scrollboxes and removing them from incomplete status. Will be functional on 4 of the 5 platforms today... and will be implementing on OS/2 as soon as I decide the best way.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 29 Mar 2011 23:04:32 +0000
parents 89dd3e442e7e
children 9750236bcdd5
line wrap: on
line diff
--- a/win/dw.c	Tue Mar 29 22:57:49 2011 +0000
+++ b/win/dw.c	Tue Mar 29 23:04:32 2011 +0000
@@ -4578,6 +4578,12 @@
     return hwndframe;
 }
 
+/*
+ * Returns the position of the scrollbar in the scrollbox
+ * Parameters:
+ *          handle: Handle to the scrollbox to be queried.
+ *          orient: The vertical or horizontal scrollbar.
+ */
 int API dw_scrollbox_get_pos( HWND handle, int orient )
 {
     SCROLLINFO si;
@@ -4591,7 +4597,7 @@
     si.cbSize = sizeof(SCROLLINFO);
     si.fMask = SIF_POS;
 
-    /* Save the current scroll positions */
+    /* Get the current scroll positions */
     if(!GetScrollInfo(handle, bar, &si))
     {
         return -1;
@@ -4599,6 +4605,12 @@
     return si.nPos;
 }
 
+/*
+ * Gets the range for the scrollbar in the scrollbox.
+ * Parameters:
+ *          handle: Handle to the scrollbox to be queried.
+ *          orient: The vertical or horizontal scrollbar.
+ */
 int API dw_scrollbox_get_range( HWND handle, int orient )
 {
     SCROLLINFO si;
@@ -4612,7 +4624,7 @@
     si.cbSize = sizeof(SCROLLINFO);
     si.fMask = SIF_RANGE;
 
-    /* Save the current scroll positions */
+    /* Get the current scroll positions */
     if(!GetScrollInfo(handle, bar, &si))
     {
         return -1;