- Timestamp:
- Oct 12, 1999, 8:14:56 PM (26 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/Makefile
r1256 r1258 1 # $Id: Makefile,v 1. 29 1999-10-12 14:47:21sandervl Exp $1 # $Id: Makefile,v 1.30 1999-10-12 18:14:53 sandervl Exp $ 2 2 3 3 # … … 82 82 button.obj: button.cpp $(PDWIN32_INCLUDE)\win\button.h 83 83 static.obj: static.cpp $(PDWIN32_INCLUDE)\win\static.h 84 scroll.obj: scroll.cpp $(PDWIN32_INCLUDE)\win\scroll.h win32wbase.h 84 scroll.obj: scroll.cpp $(PDWIN32_INCLUDE)\win\scroll.h win32wbase.h oslibwin.h 85 85 listbox.obj: listbox.cpp $(PDWIN32_INCLUDE)\win\combo.h 86 86 combo.obj: combo.cpp $(PDWIN32_INCLUDE)\win\combo.h -
trunk/src/user32/button.cpp
r1243 r1258 1 /* $Id: button.cpp,v 1. 8 1999-10-10 11:26:34 cbratschiExp $ */1 /* $Id: button.cpp,v 1.9 1999-10-12 18:14:53 sandervl Exp $ */ 2 2 /* File: button.cpp -- Button type widgets 3 3 * … … 257 257 } 258 258 259 return 0; 259 return 1; //SvL: Bugfix -> PMWINDOW expects non-zero return value if 260 // we want to restore the default mouse cursor 260 261 } 261 262 -
trunk/src/user32/edit.cpp
r1203 r1258 1 /* $Id: edit.cpp,v 1. 2 1999-10-08 21:24:07 cbratschiExp $ */1 /* $Id: edit.cpp,v 1.3 1999-10-12 18:14:54 sandervl Exp $ */ 2 2 /* 3 3 * Edit control … … 3216 3216 3217 3217 if (GetCapture() != hwnd) 3218 return 0;3218 return 1; //SvL: Bugfix 3219 3219 3220 3220 /* … … 3228 3228 e = EDIT_CharFromPos(hwnd, es, x, y, &after_wrap); 3229 3229 EDIT_EM_SetSel(hwnd, es, es->selection_start, e, after_wrap); 3230 return 0; 3230 3231 return 1; //SvL: Bugfix -> PMWINDOW expects non-zero return value if 3232 // we want to restore the default mouse cursor 3231 3233 } 3232 3234 -
trunk/src/user32/listbox.cpp
r1203 r1258 1 /* $Id: listbox.cpp,v 1. 2 1999-10-08 21:24:40 cbratschiExp $ */1 /* $Id: listbox.cpp,v 1.3 1999-10-12 18:14:55 sandervl Exp $ */ 2 2 /* 3 3 * Listbox controls … … 186 186 { 187 187 info.nMin = 0; 188 info.nMax 188 info.nMax = (descr->nb_items - 1) / descr->page_size; 189 189 info.nPos = descr->top_item / descr->page_size; 190 190 info.nPage = descr->width / descr->column_width; … … 201 201 { 202 202 info.nMin = 0; 203 info.nMax = descr->nb_items - 1; 204 info.nPos = descr->top_item; 203 info.nMax = descr->nb_items - 1; 204 // info.nPos = descr->top_item; 205 info.nPos = descr->selected_item - 1; 205 206 info.nPage = LISTBOX_GetCurrentPageSize( hwnd, descr ); 206 207 info.fMask = SIF_RANGE | SIF_POS | SIF_PAGE; 207 208 if (descr->style & LBS_DISABLENOSCROLL) 208 209 info.fMask |= SIF_DISABLENOSCROLL; 209 SetScrollInfo( hwnd, SB_VERT, &info, TRUE ); 210 211 if(info.nMax > (INT)info.nPage) { 212 ShowScrollBar(hwnd, SB_VERT, TRUE); 213 EnableScrollBar(hwnd, SB_VERT, ESB_ENABLE_BOTH); 214 SetScrollInfo( hwnd, SB_VERT, &info, TRUE ); 215 } 216 else { 217 ShowScrollBar(hwnd, SB_VERT, FALSE); 218 EnableScrollBar(hwnd, SB_VERT, ESB_DISABLE_BOTH); 219 } 210 220 211 221 if (descr->horz_extent) … … 2550 2560 LISTBOX_HandleMouseMove( hwnd, descr, (INT16)LOWORD(lParam), 2551 2561 (INT16)HIWORD(lParam) ); 2552 return 0; 2562 return 1; //SvL: Bugfix -> PMWINDOW expects non-zero return value if 2563 // we want to restore the default mouse cursor 2564 2553 2565 case WM_LBUTTONUP: 2554 2566 return LISTBOX_HandleLButtonUp( hwnd, descr ); -
trunk/src/user32/oslibwin.cpp
r1256 r1258 1 /* $Id: oslibwin.cpp,v 1.2 2 1999-10-12 14:47:22sandervl Exp $ */1 /* $Id: oslibwin.cpp,v 1.23 1999-10-12 18:14:55 sandervl Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 622 622 y = parentHeight - y - pswpOld->cy; 623 623 } 624 else y = parentHeight - y - cy; 624 625 } 625 626 else y = parentHeight - y - cy; 627 626 628 if (flags & SWP_SIZE) 627 629 { … … 635 637 } 636 638 637 y = parentHeight - y - cy; 638 639 if ((pswpOld->x == x) && (pswpOld->y == y)) 639 if ((pswpOld->x == x) && (pswpOld->y == y)) 640 640 flags &= ~SWP_MOVE; 641 641 … … 738 738 //****************************************************************************** 739 739 //****************************************************************************** 740 BOOL OSLibWinShowScrollBar(HWND hwndParent, HWND hwndScroll, int scrollBar, BOOL fShow) 740 BOOL OSLibWinShowScrollBar(HWND hwndParent, HWND hwndScroll, int scrollBar, 741 BOOL fShow, BOOL fForceChange) 741 742 { 742 743 if(hwndScroll == NULL) { … … 745 746 } 746 747 747 if(fShow != WinIsWindowVisible(hwndScroll) )748 if(fShow != WinIsWindowVisible(hwndScroll) || fForceChange) 748 749 { 749 750 WinSetParent(hwndScroll, fShow ? hwndParent : HWND_OBJECT, FALSE); -
trunk/src/user32/oslibwin.h
r1248 r1258 1 /* $Id: oslibwin.h,v 1.1 3 1999-10-11 16:04:51 cbratschiExp $ */1 /* $Id: oslibwin.h,v 1.14 1999-10-12 18:14:56 sandervl Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 260 260 #define OSLIB_VSCROLL 1 261 261 BOOL OSLibWinEnableScrollBar(HWND hwndParent, int scrollBar, BOOL fEnable); 262 BOOL OSLibWinShowScrollBar(HWND hwndParent, HWND hwndScroll, int scrollBar, BOOL fShow );262 BOOL OSLibWinShowScrollBar(HWND hwndParent, HWND hwndScroll, int scrollBar, BOOL fShow, BOOL fForceChange = FALSE); 263 263 HWND OSLibWinQueryScrollBarHandle(HWND hwndParent, int scrollBar); 264 264 ULONG OSLibWinGetScrollPos(HWND hwndParent, HWND hwndScroll); -
trunk/src/user32/win32wbase.cpp
r1256 r1258 1 /* $Id: win32wbase.cpp,v 1.3 7 1999-10-12 14:47:23sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.38 1999-10-12 18:14:56 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 510 510 { 511 511 hwndHorzScroll = OSLibWinQueryScrollBarHandle(OS2HwndFrame, OSLIB_HSCROLL); 512 OSLibWinShowScrollBar(OS2HwndFrame, hwndHorzScroll, OSLIB_HSCROLL, FALSE, TRUE); 512 513 } 513 514 514 515 if (cs->style & WS_VSCROLL) { 515 516 hwndVertScroll = OSLibWinQueryScrollBarHandle(OS2HwndFrame, OSLIB_VSCROLL); 517 OSLibWinShowScrollBar(OS2HwndFrame, hwndVertScroll, OSLIB_VSCROLL, FALSE, TRUE); 516 518 } 517 519 … … 1424 1426 { 1425 1427 new_flags = ESB_DISABLE_BOTH; 1426 //TODO: 1428 // *action |= SA_SSI_REFRESH; 1427 1429 } 1428 1430 else if (nBar != SB_CTL) 1429 1431 { 1430 //TODO 1432 // *action = SA_SSI_HIDE; 1431 1433 goto done; 1432 1434 } … … 1434 1436 else /* Show and enable scroll-bar */ 1435 1437 { 1436 //TODO1437 1438 new_flags = 0; 1439 // if (nBar != SB_CTL) 1440 // *action |= SA_SSI_SHOW; 1438 1441 } 1439 1442
Note:
See TracChangeset
for help on using the changeset viewer.