comparison win/dw.c @ 129:e47c52b37cdd

Code cleanup and OS/2 and Windows.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 20 Oct 2002 06:36:18 +0000
parents c5c3ccb84ac7
children 2584a4646b41
comparison
equal deleted inserted replaced
128:ac616f625443 129:e47c52b37cdd
6610 * Parameters: 6610 * Parameters:
6611 * handle: The handle to the splitbar returned by dw_splitbar_new(). 6611 * handle: The handle to the splitbar returned by dw_splitbar_new().
6612 */ 6612 */
6613 void dw_splitbar_set(HWND handle, float percent) 6613 void dw_splitbar_set(HWND handle, float percent)
6614 { 6614 {
6615 /* We probably need to force a redraw here */
6616 float *mypercent = (float *)dw_window_get_data(handle, "_dw_percent"); 6615 float *mypercent = (float *)dw_window_get_data(handle, "_dw_percent");
6616 int type = (int)dw_window_get_data(handle, "_dw_type");
6617 unsigned long width, height;
6617 6618
6618 if(mypercent) 6619 if(mypercent)
6619 *mypercent = percent; 6620 *mypercent = percent;
6621
6622 dw_window_get_pos_size(handle, NULL, NULL, &width, &height);
6623
6624 _handle_splitbar_resize(handle, percent, type, width, height);
6620 } 6625 }
6621 6626
6622 /* 6627 /*
6623 * Gets the position of a splitbar (pecentage). 6628 * Gets the position of a splitbar (pecentage).
6624 * Parameters: 6629 * Parameters: