Changeset 10119 for trunk/src/user32/scroll.cpp
- Timestamp:
- May 27, 2003, 11:46:30 AM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/scroll.cpp
r9994 r10119 1 /* $Id: scroll.cpp,v 1. 49 2003-04-08 13:45:04sandervl Exp $ */1 /* $Id: scroll.cpp,v 1.50 2003-05-27 09:46:30 sandervl Exp $ */ 2 2 /* 3 3 * Scrollbar control … … 17 17 #include <os2win.h> 18 18 #include "controls.h" 19 #include "ctrlconf.h" 19 20 #include "scroll.h" 20 21 #include "win32wbase.h" … … 1654 1655 { 1655 1656 fShowH = !(dwStyle & WS_HSCROLL); 1656 SetWindowLongA(hwnd, GWL_STYLE, dwStyle | WS_HSCROLL);1657 dwStyle |= WS_HSCROLL; 1657 1658 } 1658 1659 else /* hide it */ 1659 1660 { 1660 1661 fShowH = (dwStyle & WS_HSCROLL); 1661 SetWindowLongA(hwnd, GWL_STYLE, dwStyle & ~WS_HSCROLL);1662 dwStyle &= ~WS_HSCROLL; 1662 1663 } 1663 1664 if( nBar == SB_HORZ ) … … 1672 1673 { 1673 1674 fShowV = !(dwStyle & WS_VSCROLL); 1674 SetWindowLongA(hwnd, GWL_STYLE, dwStyle | WS_VSCROLL);1675 dwStyle |= WS_VSCROLL; 1675 1676 } 1676 1677 else /* hide it */ 1677 1678 { 1678 1679 fShowV = (dwStyle & WS_VSCROLL); 1679 SetWindowLongA(hwnd, GWL_STYLE, dwStyle & ~WS_VSCROLL);1680 dwStyle &= ~WS_VSCROLL; 1680 1681 } 1681 1682 if ( nBar == SB_VERT ) … … 1689 1690 if( fShowH || fShowV ) /* frame has been changed, let the window redraw itself */ 1690 1691 { 1692 WIN_SetStyle( hwnd, dwStyle ); 1691 1693 SetWindowPos( hwnd, 0, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE 1692 1694 | SWP_NOACTIVATE | SWP_NOZORDER | SWP_FRAMECHANGED );
Note:
See TracChangeset
for help on using the changeset viewer.