Changeset 1511 for trunk/src/user32/oslibwin.cpp
- Timestamp:
- Oct 29, 1999, 6:06:56 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/oslibwin.cpp
r1491 r1511 1 /* $Id: oslibwin.cpp,v 1.3 7 1999-10-28 15:20:25 sandervlExp $ */1 /* $Id: oslibwin.cpp,v 1.38 1999-10-29 16:06:55 cbratschi Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 926 926 //****************************************************************************** 927 927 //****************************************************************************** 928 HWND OSLibWinQueryObjectWindow(VOID) 929 { 930 return WinQueryObjectWindow(HWND_DESKTOP); 931 } 932 //****************************************************************************** 933 //****************************************************************************** 928 934 BOOL OSLibWinShowScrollBar(HWND hwndParent, HWND hwndScroll, int scrollBar, 929 935 BOOL fShow, BOOL fForceChange) 930 936 { 937 HWND hwndObj = WinQueryObjectWindow(HWND_DESKTOP),hwndCurPar = WinQueryWindow(hwndScroll,QW_PARENT); 938 931 939 if(hwndScroll == NULL) { 932 940 dprintf(("OSLibWinShowScrollBar: scrollbar %d (parent %x) not found!", scrollBar, hwndParent)); … … 934 942 } 935 943 936 if (fShow != WinIsWindowVisible(hwndScroll) || fForceChange)944 if ((fShow && hwndCurPar == hwndObj) || (!fShow && hwndCurPar != hwndObj) || fForceChange) 937 945 { 938 WinSetParent(hwndScroll, fShow ? hwndParent : HWND_OBJECT, FALSE); 946 //CB: bug: winhlp32: hide vert scrollbar on maximize doesn't update the frame 947 WinSetParent(hwndScroll,fShow ? hwndParent:HWND_OBJECT,FALSE); 939 948 WinSendMsg(hwndParent, WM_UPDATEFRAME, 940 949 MPFROMLONG( ( scrollBar == OSLIB_VSCROLL ) ? FCF_VERTSCROLL 941 950 : FCF_HORZSCROLL), 942 951 MPVOID ); 943 944 WinShowWindow(hwndScroll, fShow);945 952 } 946 953 return TRUE; … … 1049 1056 OSWinStyle); 1050 1057 1058 //CB: bug: it doesn't work with child windows! 1059 1051 1060 if(OSFrameStyle & FCF_TITLEBAR) 1052 1061 {
Note:
See TracChangeset
for help on using the changeset viewer.