comparison os2/dw.c @ 541:f65fc3a049ff

Move the fix, but it is just as ugly as before. ;)
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 01 Apr 2004 07:42:17 +0000
parents 2b9b88c273bc
children 8217ee5c254e
comparison
equal deleted inserted replaced
540:2b9b88c273bc 541:f65fc3a049ff
2819 2819
2820 newy = y - newy - SPLITBAR_WIDTH; 2820 newy = y - newy - SPLITBAR_WIDTH;
2821 2821
2822 WinSetWindowPos(handle2, NULLHANDLE, 0, 0, x, newy, SWP_MOVE | SWP_SIZE); 2822 WinSetWindowPos(handle2, NULLHANDLE, 0, 0, x, newy, SWP_MOVE | SWP_SIZE);
2823 _do_resize(tmp, x - 1, newy - 1); 2823 _do_resize(tmp, x - 1, newy - 1);
2824 _do_resize(tmp, x - 1, newy - 1);
2825 2824
2826 dw_window_set_data(hwnd, "_dw_start", (void *)newy); 2825 dw_window_set_data(hwnd, "_dw_start", (void *)newy);
2827 } 2826 }
2828 2827
2829 WinShowWindow(handle1, TRUE); 2828 WinShowWindow(handle1, TRUE);
2937 { 2936 {
2938 start = rclFrame.yBottom - rclBounds.yBottom; 2937 start = rclFrame.yBottom - rclBounds.yBottom;
2939 if(height - SPLITBAR_WIDTH > 1 && start < height - SPLITBAR_WIDTH) 2938 if(height - SPLITBAR_WIDTH > 1 && start < height - SPLITBAR_WIDTH)
2940 *percent = 100.0 - (((float)start / (float)(height - SPLITBAR_WIDTH)) * 100.0); 2939 *percent = 100.0 - (((float)start / (float)(height - SPLITBAR_WIDTH)) * 100.0);
2941 } 2940 }
2941 _handle_splitbar_resize(hwnd, *percent, type, width, height);
2942 _handle_splitbar_resize(hwnd, *percent, type, width, height); 2942 _handle_splitbar_resize(hwnd, *percent, type, width, height);
2943 } 2943 }
2944 } 2944 }
2945 } 2945 }
2946 return MRFROMSHORT(FALSE); 2946 return MRFROMSHORT(FALSE);