Mercurial > dwindows
comparison os2/dw.c @ 1815:6ae40234d531
Fixed the order being wrong for traversing splitbars backwards on OS/2.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 09 Oct 2012 05:05:29 +0000 |
parents | b301d86a2683 |
children | d0dda44136a0 |
comparison
equal
deleted
inserted
replaced
1814:b301d86a2683 | 1815:6ae40234d531 |
---|---|
729 | 729 |
730 WinQueryClassName(box->items[z].hwnd, 99, (PCH)tmpbuf); | 730 WinQueryClassName(box->items[z].hwnd, 99, (PCH)tmpbuf); |
731 if(strncmp(tmpbuf, SplitbarClassName, strlen(SplitbarClassName)+1)==0) | 731 if(strncmp(tmpbuf, SplitbarClassName, strlen(SplitbarClassName)+1)==0) |
732 { | 732 { |
733 /* Then try the bottom or right box */ | 733 /* Then try the bottom or right box */ |
734 HWND mybox = (HWND)dw_window_get_data(box->items[z].hwnd, "_dw_bottomright"); | 734 HWND mybox = (HWND)dw_window_get_data(box->items[z].hwnd, (direction == _DW_DIRECTION_FORWARD) ? "_dw_bottomright" : "_dw_topleft"); |
735 | 735 |
736 if(mybox) | 736 if(mybox) |
737 { | 737 { |
738 Box *splitbox = (Box *)WinQueryWindowPtr(mybox, QWP_USER); | 738 Box *splitbox = (Box *)WinQueryWindowPtr(mybox, QWP_USER); |
739 | 739 |
740 if(splitbox && _focus_check_box(splitbox, handle, start == 3 ? 3 : 0, direction, defaultitem)) | 740 if(splitbox && _focus_check_box(splitbox, handle, start == 3 ? 3 : 0, direction, defaultitem)) |
741 return 1; | 741 return 1; |
742 } | 742 } |
743 | 743 |
744 /* Try the top or left box */ | 744 /* Try the top or left box */ |
745 mybox = (HWND)dw_window_get_data(box->items[z].hwnd, "_dw_topleft"); | 745 mybox = (HWND)dw_window_get_data(box->items[z].hwnd, (direction == _DW_DIRECTION_FORWARD) ? "_dw_topleft" : "_dw_bottomright"); |
746 | 746 |
747 if(mybox) | 747 if(mybox) |
748 { | 748 { |
749 Box *splitbox = (Box *)WinQueryWindowPtr(mybox, QWP_USER); | 749 Box *splitbox = (Box *)WinQueryWindowPtr(mybox, QWP_USER); |
750 | 750 |