- Timestamp:
- May 27, 2003, 11:46:30 AM (22 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/ctrlconf.h
r9598 r10119 1 /* $Id: ctrlconf.h,v 1. 2 2003-01-03 16:35:51sandervl Exp $ */1 /* $Id: ctrlconf.h,v 1.3 2003-05-27 09:46:30 sandervl Exp $ */ 2 2 /* 3 3 * Win32 common controls … … 21 21 #define WIN_SuspendWndsLock() 0 22 22 #define WIN_RestoreWndsLock(ipreviousLock) 23 24 //Set the style of a window without sending WM_STYLECHANGING/ED messages 25 void WIN_SetStyle(HWND hwnd, DWORD dwStyle); 23 26 24 27 //WIN31 look only -> we don't use it -
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 ); -
trunk/src/user32/win32wmisc.cpp
r9598 r10119 1 /* $Id: win32wmisc.cpp,v 1. 2 2003-01-03 16:35:57sandervl Exp $ */1 /* $Id: win32wmisc.cpp,v 1.3 2003-05-27 09:46:30 sandervl Exp $ */ 2 2 /* 3 3 * Misc. functions for window management … … 20 20 #include <stdarg.h> 21 21 #include <assert.h> 22 #include < misc.h>22 #include <dbglog.h> 23 23 #include <win32wnd.h> 24 24 #include <heapstring.h> -
trunk/src/user32/windowword.cpp
r7241 r10119 1 /* $Id: windowword.cpp,v 1.1 2 2001-10-28 10:38:14sandervl Exp $ */1 /* $Id: windowword.cpp,v 1.13 2003-05-27 09:46:30 sandervl Exp $ */ 2 2 3 3 /* … … 11 11 */ 12 12 #include <os2win.h> 13 #include <misc.h> 13 #include <dbglog.h> 14 #include <ctrlconf.h> 14 15 15 16 #include <win32wbase.h> … … 18 19 #include "dbglocal.h" 19 20 21 //****************************************************************************** 22 //Update the window style without sending WM_STYLECHANGING/ED 23 //****************************************************************************** 24 void WIN_SetStyle(HWND hwnd, DWORD dwStyle) 25 { 26 Win32BaseWindow *window; 27 28 window = Win32BaseWindow::GetWindowFromHandle(hwnd); 29 if(window) 30 { 31 window->setStyle(dwStyle); 32 RELEASE_WNDOBJ(window); 33 return; 34 } 35 else { 36 dprintf(("WIN_SetStyle window %x not found!", hwnd)); 37 return; 38 } 39 } 20 40 //****************************************************************************** 21 41 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.