comparison win/dw.c @ 284:3431e445d831

Woops, screwed up the splitbar tab direction on Windows.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 17 Mar 2003 15:38:57 +0000
parents 54aafc134652
children 70480069392b
comparison
equal deleted inserted replaced
283:54aafc134652 284:3431e445d831
546 546
547 GetClassName(box->items[z].hwnd, tmpbuf, 99); 547 GetClassName(box->items[z].hwnd, tmpbuf, 99);
548 548
549 if(strncmp(tmpbuf, SplitbarClassName, strlen(SplitbarClassName)+1)==0) 549 if(strncmp(tmpbuf, SplitbarClassName, strlen(SplitbarClassName)+1)==0)
550 { 550 {
551 /* Try the top or left box */ 551 /* Then try the bottom or right box */
552 HWND mybox = (HWND)dw_window_get_data(box->items[z].hwnd, "_dw_topleft"); 552 HWND mybox = (HWND)dw_window_get_data(box->items[z].hwnd, "_dw_bottomright");
553 553
554 if(mybox) 554 if(mybox)
555 { 555 {
556 Box *splitbox = (Box *)GetWindowLong(mybox, GWL_USERDATA); 556 Box *splitbox = (Box *)GetWindowLong(mybox, GWL_USERDATA);
557 557
558 if(splitbox && _focus_check_box(splitbox, handle, start == 3 ? 3 : 0, defaultitem)) 558 if(splitbox && _focus_check_box(splitbox, handle, start == 3 ? 3 : 0, defaultitem))
559 return 1; 559 return 1;
560 } 560 }
561 561
562 /* Then try the bottom or right box */ 562 /* Try the top or left box */
563 mybox = (HWND)dw_window_get_data(box->items[z].hwnd, "_dw_bottomright"); 563 mybox = (HWND)dw_window_get_data(box->items[z].hwnd, "_dw_topleft");
564 564
565 if(mybox) 565 if(mybox)
566 { 566 {
567 Box *splitbox = (Box *)GetWindowLong(mybox, GWL_USERDATA); 567 Box *splitbox = (Box *)GetWindowLong(mybox, GWL_USERDATA);
568 568
673 673
674 GetClassName(box->items[z].hwnd, tmpbuf, 99); 674 GetClassName(box->items[z].hwnd, tmpbuf, 99);
675 675
676 if(strncmp(tmpbuf, SplitbarClassName, strlen(SplitbarClassName)+1)==0) 676 if(strncmp(tmpbuf, SplitbarClassName, strlen(SplitbarClassName)+1)==0)
677 { 677 {
678 /* Then try the bottom or right box */ 678 /* Try the top or left box */
679 HWND mybox = (HWND)dw_window_get_data(box->items[z].hwnd, "_dw_bottomright"); 679 HWND mybox = (HWND)dw_window_get_data(box->items[z].hwnd, "_dw_topleft");
680 680
681 if(mybox) 681 if(mybox)
682 { 682 {
683 Box *splitbox = (Box *)GetWindowLong(mybox, GWL_USERDATA); 683 Box *splitbox = (Box *)GetWindowLong(mybox, GWL_USERDATA);
684 684
685 if(splitbox && _focus_check_box_back(splitbox, handle, start == 3 ? 3 : 0, defaultitem)) 685 if(splitbox && _focus_check_box_back(splitbox, handle, start == 3 ? 3 : 0, defaultitem))
686 return 1; 686 return 1;
687 } 687 }
688 688
689 /* Try the top or left box */ 689 /* Then try the bottom or right box */
690 mybox = (HWND)dw_window_get_data(box->items[z].hwnd, "_dw_topleft"); 690 mybox = (HWND)dw_window_get_data(box->items[z].hwnd, "_dw_bottomright");
691 691
692 if(mybox) 692 if(mybox)
693 { 693 {
694 Box *splitbox = (Box *)GetWindowLong(mybox, GWL_USERDATA); 694 Box *splitbox = (Box *)GetWindowLong(mybox, GWL_USERDATA);
695 695