- Timestamp:
- Oct 3, 2001, 8:37:53 PM (24 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 1 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/Makefile
r6918 r6941 1 # $Id: Makefile,v 1.9 5 2001-10-01 01:41:38 birdExp $1 # $Id: Makefile,v 1.96 2001-10-03 18:37:51 sandervl Exp $ 2 2 3 3 # … … 19 19 # 20 20 !ifndef WMAKE 21 CDEFINES = $(CDEFINES) -DINVERT -DCLIENTFRAME 21 CDEFINES = $(CDEFINES) -DINVERT -DCLIENTFRAME -DCUSTOM_TRACKFRAME 22 22 !else 23 CDEFINES += -DINVERT -DCLIENTFRAME 23 CDEFINES += -DINVERT -DCLIENTFRAME -DCUSTOM_TRACKFRAME 24 24 !endif 25 25 … … 64 64 $(OBJDIR)\winproc.obj \ 65 65 $(OBJDIR)\oslibmsg.obj \ 66 $(OBJDIR)\wintrack.obj \ 66 67 $(OBJDIR)\hook.obj \ 67 68 $(OBJDIR)\win32wmdiclient.obj \ -
trunk/src/user32/dc.cpp
r6412 r6941 1 /* $Id: dc.cpp,v 1.11 1 2001-07-30 12:02:15sandervl Exp $ */1 /* $Id: dc.cpp,v 1.112 2001-10-03 18:37:51 sandervl Exp $ */ 2 2 3 3 /* … … 969 969 int clipstyle = 0; 970 970 int clipwnd = HWND_TOP; 971 if(flags & (DCX_USESTYLE_W)) { 971 if(flags & (DCX_USESTYLE_W)) 972 { 972 973 int style = wnd->getStyle(); 973 974 if(style & WS_CLIPCHILDREN_W) { … … 990 991 clipstyle |= PSF_PARENTCLIP; 991 992 } 992 if(clipstyle) { 993 //Always call WinGetClipPS; WinGetPS takes window & class style 994 //into account 995 // if(clipstyle || !(flags & DCX_DEFAULTCLIP_W)) { 993 996 dprintf2(("WinGetClipPS style %x", clipstyle)); 994 997 hps = WinGetClipPS(hWindow, clipwnd, clipstyle); 995 }996 else hps = WinGetPS (hWindow);998 // } 999 // else hps = WinGetPS (hWindow); 997 1000 998 1001 // default cp is OS/2 one: set to windows default (ODIN.INI) … … 1111 1114 return GetDCEx( GetDesktopWindow(), 0, DCX_CACHE_W | DCX_WINDOW_W ); 1112 1115 1113 return GetDCEx (hwnd, NULL, 0);1116 return GetDCEx (hwnd, NULL, DCX_USESTYLE_W); 1114 1117 } 1115 1118 //****************************************************************************** … … 1118 1121 { 1119 1122 if (!hwnd) hwnd = GetDesktopWindow(); 1120 return GetDCEx (hwnd, NULL, DCX_WINDOW_W );1123 return GetDCEx (hwnd, NULL, DCX_WINDOW_W | DCX_USESTYLE_W); 1121 1124 } 1122 1125 //****************************************************************************** -
trunk/src/user32/oslibmsg.cpp
r6620 r6941 1 /* $Id: oslibmsg.cpp,v 1.4 3 2001-09-01 12:41:42sandervl Exp $ */1 /* $Id: oslibmsg.cpp,v 1.44 2001-10-03 18:37:51 sandervl Exp $ */ 2 2 /* 3 3 * Window message translation functions for OS/2 … … 82 82 83 83 //TODO: Needs better translation! 84 WM_CHAR, WINWM_KEYDOWN, 84 WM_CHAR, WINWM_KEYDOWN, //WM_KEYFIRST 85 85 WM_CHAR, WINWM_KEYUP, 86 86 WM_CHAR, WINWM_CHAR, … … 97 97 // 98 98 //todo: not always right if mouse msg turns out to be for the nonclient window 99 WM_MOUSEMOVE, WINWM_MOUSEMOVE, 99 WM_MOUSEMOVE, WINWM_MOUSEMOVE, //WM_MOUSEFIRST 100 100 WM_BUTTON1DOWN, WINWM_LBUTTONDOWN, 101 101 WM_BUTTON1UP, WINWM_LBUTTONUP, … … 107 107 WM_BUTTON3UP, WINWM_MBUTTONUP, 108 108 WM_BUTTON3DBLCLK, WINWM_MBUTTONDBLCLK, 109 109 WM_BUTTON3DBLCLK, WINWM_MOUSEWHEEL, //WM_MOUSELAST 110 110 999999999, 999999999, 111 111 }; … … 270 270 do { 271 271 eaten = FALSE; 272 rc = WinGetMsg(teb->o.odin.hab, &os2msg, filtermin, filtermax, 0);272 rc = WinGetMsg(teb->o.odin.hab, &os2msg, 0, filtermin, filtermax); 273 273 if (os2msg.msg == WM_TIMER) 274 274 eaten = TIMER_HandleTimer(&os2msg); -
trunk/src/user32/oslibmsg.h
r5137 r6941 1 /* $Id: oslibmsg.h,v 1.1 4 2001-02-15 00:33:01sandervl Exp $ */1 /* $Id: oslibmsg.h,v 1.15 2001-10-03 18:37:52 sandervl Exp $ */ 2 2 /* 3 3 * Window message translation functions for OS/2 … … 165 165 #define WINWM_MBUTTONUP 0x0208 166 166 #define WINWM_MBUTTONDBLCLK 0x0209 167 #define WINWM_MOUSELAST 0x0209 167 #define WINWM_MOUSEWHEEL 0x020A 168 #define WINWM_MOUSELAST 0x020A 168 169 #define WINWM_PARENTNOTIFY 0x0210 169 170 #define WINWM_ENTERMENULOOP 0x0211 -
trunk/src/user32/pmwindow.cpp
r6936 r6941 1 /* $Id: pmwindow.cpp,v 1.15 1 2001-10-03 13:50:36sandervl Exp $ */1 /* $Id: pmwindow.cpp,v 1.152 2001-10-03 18:37:52 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Managment Code for OS/2 … … 1405 1405 dprintf(("PMFRAME: WM_TRACKFRAME %x %x %x", win32wnd->getWindowHandle(), mp1, mp2)); 1406 1406 if(fOS2Look) {//sent by titlebar control 1407 #ifdef CUSTOM_TRACKFRAME 1408 Frame_SysCommandSizeMove(win32wnd, SC_MOVE_W); 1409 #else 1407 1410 FrameTrackFrame(win32wnd, TF_MOVE); 1411 #endif 1408 1412 } 1409 1413 rc = 0; … … 1456 1460 return WinDefWindowProc( hwnd, msg, mp1, mp2 ); 1457 1461 } 1462 #ifndef CUSTOM_TRACKFRAME 1458 1463 //****************************************************************************** 1459 1464 //TODO: Quickly moving a window two times doesn't force a repaint (1st time) … … 1556 1561 return; 1557 1562 } 1563 #endif 1558 1564 //****************************************************************************** 1559 1565 //****************************************************************************** -
trunk/src/user32/pmwindow.h
r5951 r6941 1 /* $Id: pmwindow.h,v 1.1 1 2001-06-10 12:05:39sandervl Exp $ */1 /* $Id: pmwindow.h,v 1.12 2001-10-03 18:37:52 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Managment Code for OS/2 … … 32 32 33 33 VOID FrameTrackFrame(Win32BaseWindow *win32wnd,DWORD flags); 34 void Frame_SysCommandSizeMove(Win32BaseWindow *win32wnd, WPARAM wParam); 34 35 35 36 #endif -
trunk/src/user32/win32wbasenonclient.cpp
r6064 r6941 1 /* $Id: win32wbasenonclient.cpp,v 1.3 5 2001-06-22 07:32:48sandervl Exp $ */1 /* $Id: win32wbasenonclient.cpp,v 1.36 2001-10-03 18:37:53 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 (non-client methods) … … 1270 1270 switch (uCommand) 1271 1271 { 1272 1273 1272 case SC_SIZE: 1274 1273 { 1274 #ifdef CUSTOM_TRACKFRAME 1275 Frame_SysCommandSizeMove(this, wParam); 1276 #else 1275 1277 DWORD flags; 1276 1278 … … 1316 1318 } 1317 1319 if (flags) FrameTrackFrame(this,flags); 1320 #endif 1318 1321 break; 1319 1322 } 1320 1323 1321 1324 case SC_MOVE: 1325 #ifdef CUSTOM_TRACKFRAME 1326 Frame_SysCommandSizeMove(this, wParam); 1327 #else 1322 1328 if (dwStyle & WS_MAXIMIZE) break; 1323 1329 FrameTrackFrame(this,TFOS_MOVE); 1330 #endif 1324 1331 break; 1325 1332
Note:
See TracChangeset
for help on using the changeset viewer.