Mercurial > dwindows
comparison win/dw.c @ 903:db26726118ba
Fixed scrollbox tab and shift tab focus shifting on Windows.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 19 Apr 2011 04:37:48 +0000 |
parents | 529c27638936 |
children | 3e393a9375c4 |
comparison
equal
deleted
inserted
replaced
902:5596e3830ae3 | 903:db26726118ba |
---|---|
768 if(notebox && _focus_check_box(notebox, handle, start == 3 ? 3 : 0, defaultitem)) | 768 if(notebox && _focus_check_box(notebox, handle, start == 3 ? 3 : 0, defaultitem)) |
769 return 1; | 769 return 1; |
770 } | 770 } |
771 } | 771 } |
772 } | 772 } |
773 else if(strnicmp(tmpbuf, ScrollClassName, strlen(ScrollClassName))==0) /* Scroll Box */ | |
774 { | |
775 ColorInfo *cinfo = (ColorInfo *)GetWindowLongPtr(box->items[z].hwnd, GWLP_USERDATA); | |
776 Box *scrollbox = (Box *)GetWindowLongPtr(cinfo->combo, GWLP_USERDATA); | |
777 | |
778 if(scrollbox && _focus_check_box(scrollbox, handle, start == 3 ? 3 : 0, defaultitem)) | |
779 return 1; | |
780 } | |
773 } | 781 } |
774 } | 782 } |
775 } | 783 } |
776 return 0; | 784 return 0; |
777 } | 785 } |
894 | 902 |
895 if(notebox && _focus_check_box_back(notebox, handle, start == 3 ? 3 : 0, defaultitem)) | 903 if(notebox && _focus_check_box_back(notebox, handle, start == 3 ? 3 : 0, defaultitem)) |
896 return 1; | 904 return 1; |
897 } | 905 } |
898 } | 906 } |
907 } | |
908 else if(strnicmp(tmpbuf, ScrollClassName, strlen(ScrollClassName))==0) /* Scroll Box */ | |
909 { | |
910 ColorInfo *cinfo = (ColorInfo *)GetWindowLongPtr(box->items[z].hwnd, GWLP_USERDATA); | |
911 Box *scrollbox = (Box *)GetWindowLongPtr(cinfo->combo, GWLP_USERDATA); | |
912 | |
913 if(scrollbox && _focus_check_box_back(scrollbox, handle, start == 3 ? 3 : 0, defaultitem)) | |
914 return 1; | |
899 } | 915 } |
900 } | 916 } |
901 } | 917 } |
902 } | 918 } |
903 return 0; | 919 return 0; |