Mercurial > dwindows
diff win/dw.c @ 33:72675de7d229
Renamed slider class to percent class. Implemented my own percent widget
on OS/2 to avoid horrible memory leak.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 30 Aug 2001 06:07:19 +0000 |
parents | f3bf96c2786d |
children | b03b24bb95f8 |
line wrap: on
line diff
--- a/win/dw.c Mon Aug 27 17:16:12 2001 +0000 +++ b/win/dw.c Thu Aug 30 06:07:19 2001 +0000 @@ -3363,11 +3363,11 @@ /* - * Create a new slider window (widget) to be packed. + * Create a new percent bar window (widget) to be packed. * Parameters: * id: An ID to be used with WinWindowFromID() or 0L. */ -HWND dw_slider_new(ULONG id) +HWND dw_percent_new(ULONG id) { return CreateWindow(PROGRESS_CLASS, "", @@ -4375,22 +4375,22 @@ } /* - * Returns the range of the slider. + * Returns the range of the percent bar. * Parameters: * handle: Handle to the slider to be queried. */ -unsigned int dw_slider_query_range(HWND handle) +unsigned int dw_percent_query_range(HWND handle) { return (unsigned int)SendMessage(handle, PBM_GETRANGE, (WPARAM)FALSE, 0); } /* - * Sets the slider position. + * Sets the percent bar position. * Parameters: * handle: Handle to the slider to be set. * position: Position of the slider withing the range. */ -void dw_slider_set_pos(HWND handle, unsigned int position) +void dw_percent_set_pos(HWND handle, unsigned int position) { SendMessage(handle, PBM_SETPOS, (WPARAM)position, 0); }