Changeset 13237
- Timestamp:
- Feb 5, 2000, 3:08:54 PM (25 years ago)
- Location:
- tags/trunk/src/user32
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified tags/trunk/src/user32/Makefile ¶
r13229 r13237 1 # $Id: Makefile,v 1.6 1 2000-02-05 02:12:20sandervl Exp $1 # $Id: Makefile,v 1.62 2000-02-05 14:08:52 sandervl Exp $ 2 2 3 3 # … … 23 23 CXXFLAGS = $(CXXFLAGS) -DDEBUG_ENABLELOG_LEVEL2 24 24 !endif 25 26 RC = $(PDWIN32_TOOLS)\wrc27 RCFLAGS = -s -I. -I$(CPPMAIN)\include -I$(PDWIN32_INCLUDE) -I$(PDWIN32_INCLUDE)\win28 25 29 26 TARGET = user32 -
TabularUnified tags/trunk/src/user32/oslibwin.cpp ¶
r13150 r13237 1 /* $Id: oslibwin.cpp,v 1.6 5 2000-01-29 20:46:52sandervl Exp $ */1 /* $Id: oslibwin.cpp,v 1.66 2000-02-05 14:08:53 sandervl Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 102 102 //****************************************************************************** 103 103 //****************************************************************************** 104 BOOL OSLibWinConvertStyle(ULONG dwStyle, ULONG *dwExStyle, ULONG *OSWinStyle , ULONG *OSFrameStyle, ULONG *borderWidth, ULONG *borderHeight)104 BOOL OSLibWinConvertStyle(ULONG dwStyle, ULONG *dwExStyle, ULONG *OSWinStyle) 105 105 { 106 106 *OSWinStyle = 0; 107 *OSFrameStyle = 0;108 *borderWidth = 0;109 *borderHeight = 0;110 107 111 108 /* Window styles */ … … 130 127 *OSWinStyle |= WS_TABSTOP; 131 128 132 if(dwStyle & WS_CHILD_W && !((dwStyle & WS_CAPTION_W) == WS_CAPTION_W))133 {134 //SvL: Causes crash in VPBuddy if enabled -> find bug135 #if 0136 if (!HAS_3DFRAME(*dwExStyle) && (dwStyle & (WS_DLGFRAME_W | WS_THICKFRAME_W))) *dwExStyle |= WS_EX_DLGMODALFRAME_W;137 #endif138 139 if (*dwExStyle & WS_EX_CLIENTEDGE_W)140 {141 *OSFrameStyle |= FCF_SIZEBORDER;142 *borderHeight = *borderWidth = 2;143 }144 else145 if (*dwExStyle & WS_EX_DLGMODALFRAME_W)146 {147 *OSFrameStyle |= FCF_SIZEBORDER;148 *borderHeight = *borderWidth = 3;149 }150 else151 if (*dwExStyle & WS_EX_STATICEDGE_W)152 {153 *OSFrameStyle |= FCF_SIZEBORDER;154 *borderHeight = *borderWidth = 2;155 }156 else157 if(dwStyle & WS_BORDER_W)158 {159 *OSFrameStyle |= FCF_BORDER;160 *borderHeight = *borderWidth = 1;161 }162 else if (*dwExStyle & WS_EX_WINDOWEDGE_W); //no border163 164 if(dwStyle & WS_VSCROLL_W)165 *OSFrameStyle |= FCF_VERTSCROLL;166 if(dwStyle & WS_HSCROLL_W)167 *OSFrameStyle |= FCF_HORZSCROLL;168 }169 else170 {171 if((dwStyle & WS_CAPTION_W) == WS_DLGFRAME_W)172 *OSFrameStyle |= FCF_DLGBORDER;173 else174 {175 if((dwStyle & WS_CAPTION_W) == WS_CAPTION_W)176 *OSFrameStyle |= (FCF_TITLEBAR | FCF_BORDER);177 else178 if(dwStyle & WS_BORDER_W)179 *OSFrameStyle |= FCF_BORDER;180 }181 182 if(dwStyle & WS_VSCROLL_W)183 *OSFrameStyle |= FCF_VERTSCROLL;184 if(dwStyle & WS_HSCROLL_W)185 *OSFrameStyle |= FCF_HORZSCROLL;186 187 if(dwStyle & WS_SYSMENU_W)188 *OSFrameStyle |= FCF_SYSMENU;189 if(dwStyle & WS_THICKFRAME_W)190 *OSFrameStyle |= FCF_SIZEBORDER; //??191 if(dwStyle & WS_MINIMIZEBOX_W)192 *OSFrameStyle |= FCF_MINBUTTON;193 if(dwStyle & WS_MAXIMIZEBOX_W)194 *OSFrameStyle |= FCF_MAXBUTTON;195 196 if(*dwExStyle & WS_EX_DLGMODALFRAME_W)197 *OSFrameStyle |= FCF_DLGBORDER;198 }199 200 //Clear certain frame bits when the window doesn't have a titlebar201 if(!(*OSFrameStyle & FCF_TITLEBAR)) {202 *OSFrameStyle &= ~(FCF_MINBUTTON|FCF_MAXBUTTON|FCF_SYSMENU);203 }204 129 return TRUE; 205 130 } … … 983 908 //****************************************************************************** 984 909 //****************************************************************************** 910 void OSLibSetWindowStyle(HWND hwnd, ULONG dwStyle, ULONG dwExStyle, BOOL saveBits) 911 { 912 ULONG dwWinStyle; 913 914 OSLibWinConvertStyle(dwStyle, &dwExStyle, &dwWinStyle); 915 916 dwWinStyle = dwWinStyle & ~(WS_TABSTOP | WS_GROUP | WS_CLIPCHILDREN); 917 if(saveBits) dwWinStyle |= WS_SAVEBITS; 918 if(dwStyle & WS_VISIBLE_W) 919 dwWinStyle |= WS_VISIBLE; 920 921 WinSetWindowULong(hwnd, QWL_STYLE, 922 (WinQueryWindowULong(hwnd, QWL_STYLE) & ~0xffff0000) | 923 dwWinStyle); 924 } 925 //****************************************************************************** 926 //****************************************************************************** -
TabularUnified tags/trunk/src/user32/oslibwin.h ¶
r13163 r13237 1 /* $Id: oslibwin.h,v 1.3 6 2000-01-31 22:30:52sandervl Exp $ */1 /* $Id: oslibwin.h,v 1.37 2000-02-05 14:08:53 sandervl Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 42 42 HWND *hwndFrame, ULONG id, BOOL fTaskList,BOOL saveBits); 43 43 44 BOOL OSLibWinConvertStyle(ULONG dwStyle, ULONG *dwExStyle, ULONG *OSWinStyle , ULONG *OSFrameStyle, ULONG *borderWidth, ULONG *borderHeight);45 void OSLibSetWindowStyle(HWND hwnd, ULONG dwStyle, BOOL fTaskList);44 BOOL OSLibWinConvertStyle(ULONG dwStyle, ULONG *dwExStyle, ULONG *OSWinStyle); 45 void OSLibSetWindowStyle(HWND hwnd, ULONG dwStyle, ULONG dwExStyle, BOOL saveBits); 46 46 47 47 #define OSLIB_QWL_USER -4 -
TabularUnified tags/trunk/src/user32/win32wbase.cpp ¶
r13216 r13237 1 /* $Id: win32wbase.cpp,v 1.15 1 2000-02-04 17:17:56 cbratschiExp $ */1 /* $Id: win32wbase.cpp,v 1.152 2000-02-05 14:08:53 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 126 126 127 127 pOldFrameProc = NULL; 128 borderWidth = 0;129 borderHeight = 0;130 128 131 129 hwndLinkAfter = HWND_BOTTOM; … … 483 481 } 484 482 485 DWORD dwOSWinStyle , dwOSFrameStyle;486 487 OSLibWinConvertStyle(dwStyle, &dwExStyle, &dwOSWinStyle , &dwOSFrameStyle, &borderWidth, &borderHeight);483 DWORD dwOSWinStyle; 484 485 OSLibWinConvertStyle(dwStyle, &dwExStyle, &dwOSWinStyle); 488 486 489 487 if(HIWORD(cs->lpszName)) … … 2733 2731 setStyle(ss.styleNew); 2734 2732 SendInternalMessageA(WM_STYLECHANGED,GWL_STYLE,(LPARAM)&ss); 2733 OSLibSetWindowStyle(getOS2FrameWindowHandle(), getStyle(), getExStyle(), 2734 windowClass->getStyle() & CS_SAVEBITS); 2735 2735 #ifdef DEBUG 2736 2736 PrintWindowStyle(ss.styleNew, 0); … … 2740 2740 case GWL_WNDPROC: 2741 2741 oldval = (LONG)WINPROC_GetProc(win32wndproc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A); 2742 //WINPROC_SetProc((HWINDOWPROC *)&win32wndproc, (WNDPROC)value, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A, WIN_PROC_WINDOW);2743 2742 WINPROC_SetProc((HWINDOWPROC *)&win32wndproc, (WNDPROC)value, WINPROC_GetProcType(win32wndproc), WIN_PROC_WINDOW); 2744 2743 return oldval; 2744 2745 2745 case GWL_HINSTANCE: 2746 2746 oldval = hInstance; 2747 2747 hInstance = value; 2748 2748 return oldval; 2749 2749 2750 case GWL_HWNDPARENT: 2750 2751 return SetParent((HWND)value); 2752 2751 2753 case GWL_ID: 2752 2754 oldval = getWindowId(); 2753 2755 setWindowId(value); 2754 2756 return oldval; 2757 2755 2758 case GWL_USERDATA: 2756 2759 oldval = userData; 2757 2760 userData = value; 2758 2761 return oldval; 2762 2759 2763 default: 2760 2764 if(index >= 0 && index/4 < nrUserWindowLong) -
TabularUnified tags/trunk/src/user32/win32wbase.h ¶
r13192 r13237 1 /* $Id: win32wbase.h,v 1.7 8 2000-02-03 17:13:02 cbratschiExp $ */1 /* $Id: win32wbase.h,v 1.79 2000-02-05 14:08:54 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 289 289 PVOID getOldFrameProc() { return pOldFrameProc; }; 290 290 VOID setOldFrameProc(PVOID aOldFrameProc) { pOldFrameProc = aOldFrameProc; }; 291 ULONG getBorderWidth() { return borderWidth; };292 ULONG getBorderHeight() { return borderHeight; };293 291 294 292 PVOID getOldWndProc() { return pOldWndProc; } … … 347 345 DWORD dwProcessId; //id of process that created this window 348 346 PVOID pOldFrameProc; 349 ULONG borderWidth;350 ULONG borderHeight;351 347 352 348 PVOID pOldWndProc; -
TabularUnified tags/trunk/src/user32/win32wmdichild.cpp ¶
r13114 r13237 1 /* $Id: win32wmdichild.cpp,v 1.2 0 2000-01-27 21:50:03sandervl Exp $ */1 /* $Id: win32wmdichild.cpp,v 1.21 2000-02-05 14:08:54 sandervl Exp $ */ 2 2 /* 3 3 * Win32 MDI Child Window Class for OS/2 … … 361 361 * the SWP_SHOWWINDOW command. 362 362 */ 363 //SvL: Not here. This causes problems in OS/2 364 // newchild->SetWindowLongA(GWL_STYLE, showflag & ~WS_VISIBLE); 363 newchild->SetWindowLongA(GWL_STYLE, newchild->getStyle() & ~WS_VISIBLE); 365 364 if(showflag){ 366 365 newchild->SetWindowPos(0, 0, 0, 0, 0, SWP_SHOWWINDOW | SWP_NOSIZE | SWP_NOMOVE );
Note:
See TracChangeset
for help on using the changeset viewer.