- Timestamp:
- Dec 29, 2000, 7:41:23 PM (25 years ago)
- Location:
- trunk/src
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gdi32/dibsect.cpp
r4681 r4848 1 /* $Id: dibsect.cpp,v 1.4 3 2000-11-23 19:23:01sandervl Exp $ */1 /* $Id: dibsect.cpp,v 1.44 2000-12-29 18:40:43 sandervl Exp $ */ 2 2 3 3 /* … … 25 25 #include <win32api.h> 26 26 #include <winconst.h> 27 #include <win32wnd.h>28 27 #include <cpuhlp.h> 29 28 #include <dcdata.h> -
trunk/src/gdi32/gdi32.cpp
r4602 r4848 1 /* $Id: gdi32.cpp,v 1.6 3 2000-11-16 16:34:48sandervl Exp $ */1 /* $Id: gdi32.cpp,v 1.64 2000-12-29 18:40:44 sandervl Exp $ */ 2 2 3 3 /* … … 15 15 #include <string.h> 16 16 #include <odinwrap.h> 17 #include "misc.h"17 #include <misc.h> 18 18 #include "callback.h" 19 19 #include "unicode.h" … … 23 23 #include "oslibgdi.h" 24 24 #include <dcdata.h> 25 #include <win 32wnd.h>25 #include <winuser32.h> 26 26 27 27 #define DBG_LOCALLOG DBG_gdi32 -
trunk/src/gdi32/region.cpp
r4755 r4848 1 /* $Id: region.cpp,v 1.1 8 2000-12-05 13:04:07sandervl Exp $ */1 /* $Id: region.cpp,v 1.19 2000-12-29 18:40:44 sandervl Exp $ */ 2 2 3 3 /* … … 28 28 #include <dcdata.h> 29 29 #include <winuser32.h> 30 #include <win32wnd.h>31 30 #include "oslibgpi.h" 32 31 -
trunk/src/gdi32/transform.cpp
r4557 r4848 1 /* $Id: transform.cpp,v 1. 1 2000-11-05 18:48:22sandervl Exp $ */1 /* $Id: transform.cpp,v 1.2 2000-12-29 18:40:44 sandervl Exp $ */ 2 2 3 3 /* … … 27 27 #include <dcdata.h> 28 28 #include <winuser32.h> 29 #include <win32wnd.h>30 29 #include "oslibgpi.h" 31 30 -
trunk/src/user32/USER32.DEF
r4816 r4848 1 ; $Id: USER32.DEF,v 1.4 5 2000-12-16 23:24:36 birdExp $1 ; $Id: USER32.DEF,v 1.46 2000-12-29 18:39:58 sandervl Exp $ 2 2 3 3 LIBRARY USER32 INITINSTANCE TERMINSTANCE … … 641 641 GetPattern55AABitmap = _GetPattern55AABitmap@0 @2004 642 642 643 Win32ToOS2Handle__FUl = Win32ToOS2Handle__15Win32BaseWindowFUl @2006 644 OS2ToWin32Handle__FUl = OS2ToWin32Handle__15Win32BaseWindowFUl @2012 645 ; IsOS2FrameWindowHandle__FUlUl = IsOS2FrameWindowHandle__15Win32BaseWindowFUlUl @2013 643 _Win32ToOS2Handle@4 @2006 644 _OS2ToWin32Handle@4 @2012 646 645 647 646 _MOUSE_Enable@4 @2007 -
trunk/src/user32/caret.cpp
r4825 r4848 1 /* $Id: caret.cpp,v 1.1 4 2000-12-17 15:04:09sandervl Exp $ */1 /* $Id: caret.cpp,v 1.15 2000-12-29 18:39:58 sandervl Exp $ */ 2 2 3 3 /* … … 20 20 #include <win32api.h> 21 21 #include <winconst.h> 22 #include <winuser32.h> 22 23 #include <wprocess.h> 23 24 #include <misc.h> … … 230 231 CaretIsVisible++; 231 232 if (CaretIsVisible == 1) 232 rc = _ShowCaret (Win32 BaseWindow::Win32ToOS2Handle (hwnd));233 rc = _ShowCaret (Win32ToOS2Handle (hwnd)); 233 234 else 234 235 rc = TRUE; … … 245 246 CaretIsVisible--; 246 247 if (CaretIsVisible == 0) 247 rc = _HideCaret (Win32 BaseWindow::Win32ToOS2Handle (hwnd));248 rc = _HideCaret (Win32ToOS2Handle (hwnd)); 248 249 else 249 250 rc = TRUE; … … 265 266 SetCaretPos (CaretPosX, CaretPosY); 266 267 if (CaretIsVisible > 0) 267 _ShowCaret(Win32 BaseWindow::Win32ToOS2Handle(hwndCaret));268 } 269 } 268 _ShowCaret(Win32ToOS2Handle(hwndCaret)); 269 } 270 } -
trunk/src/user32/dc.cpp
r4762 r4848 1 /* $Id: dc.cpp,v 1.8 0 2000-12-07 11:59:45sandervl Exp $ */1 /* $Id: dc.cpp,v 1.81 2000-12-29 18:39:58 sandervl Exp $ */ 2 2 3 3 /* … … 25 25 #include <win32type.h> 26 26 #include <win32api.h> 27 #include <winuser32.h> 27 28 #include <winconst.h> 28 29 #include <misc.h> … … 1768 1769 dprintf2(("USER32: WindowFromDC %x", hdc)); 1769 1770 if ( pHps ) 1770 return Win32BaseWindow::OS2ToWin32Handle(pHps->hwnd);1771 return OS2ToWin32Handle(pHps->hwnd); 1771 1772 else 1772 1773 return 0; -
trunk/src/user32/oslibmsg.cpp
r4658 r4848 1 /* $Id: oslibmsg.cpp,v 1.3 4 2000-11-21 11:36:08 sandervl Exp $ */1 /* $Id: oslibmsg.cpp,v 1.35 2000-12-29 18:39:58 sandervl Exp $ */ 2 2 /* 3 3 * Window message translation functions for OS/2 … … 26 26 #include <winconst.h> 27 27 #include <win32api.h> 28 #include <win 32wnd.h>28 #include <winuser32.h> 29 29 #include "oslibutil.h" 30 30 #include "timer.h" … … 102 102 { 103 103 // memcpy(os2Msg, winMsg, sizeof(MSG)); 104 // os2Msg->hwnd = Win32 Window::Win32ToOS2Handle(winMsg->hwnd);104 // os2Msg->hwnd = Win32ToOS2Handle(winMsg->hwnd); 105 105 // os2Msg->reserved = 0; 106 106 } … … 195 195 196 196 if(hwnd) { 197 hwndOS2 = Win32 BaseWindow::Win32ToOS2Handle(hwnd);197 hwndOS2 = Win32ToOS2Handle(hwnd); 198 198 if(hwndOS2 == NULL) { 199 199 memset(pMsg, 0, sizeof(MSG)); … … 292 292 293 293 if(hwnd && hwnd != -1) { 294 hwndOS2 = Win32 BaseWindow::Win32ToOS2Handle(hwnd);294 hwndOS2 = Win32ToOS2Handle(hwnd); 295 295 if(hwndOS2 == NULL) { 296 296 dprintf(("PeekMsg: window %x NOT FOUND!", hwnd)); -
trunk/src/user32/oslibmsgtranslate.cpp
r4658 r4848 1 /* $Id: oslibmsgtranslate.cpp,v 1. 39 2000-11-21 11:36:08 sandervl Exp $ */1 /* $Id: oslibmsgtranslate.cpp,v 1.40 2000-12-29 18:39:58 sandervl Exp $ */ 2 2 /* 3 3 * Window message translation functions for OS/2 … … 23 23 #include <winconst.h> 24 24 #include "oslibmsg.h" 25 #include "win32wnd.h"25 #include <winuser32.h> 26 26 #include "win32wdesktop.h" 27 27 #include "oslibutil.h" … … 265 265 BOOL fMinimized = FALSE; 266 266 267 hwndActivate = Win32BaseWindow::OS2ToWin32Handle(hwndActivate);267 hwndActivate = OS2ToWin32Handle(hwndActivate); 268 268 if(hwndActivate == 0) { 269 269 //another (non-win32) application's window … … 292 292 hwndFocus = NULL; 293 293 } 294 else hwndFocus = Win32BaseWindow::OS2ToWin32Handle(hwndFocus);294 else hwndFocus = OS2ToWin32Handle(hwndFocus); 295 295 296 296 if((ULONG)os2Msg->mp2 == TRUE) { -
trunk/src/user32/pmwindow.cpp
r4839 r4848 1 /* $Id: pmwindow.cpp,v 1.11 0 2000-12-24 14:54:07sandervl Exp $ */1 /* $Id: pmwindow.cpp,v 1.111 2000-12-29 18:39:58 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Managment Code for OS/2 … … 22 22 #include <win32type.h> 23 23 #include <winconst.h> 24 #include <winuser32.h> 24 25 #include <wprocess.h> 25 26 #include <misc.h> … … 581 582 HWND hwndFocus = (HWND)mp1; 582 583 583 dprintf(("OS2: WM_SETFOCUS %x %x (%x) %d", win32wnd->getWindowHandle(), mp1, Win32BaseWindow::OS2ToWin32Handle(hwndFocus), mp2));584 dprintf(("OS2: WM_SETFOCUS %x %x (%x) %d", win32wnd->getWindowHandle(), mp1, OS2ToWin32Handle(hwndFocus), mp2)); 584 585 if(WinQueryWindowULong(hwndFocus, OFFSET_WIN32PM_MAGIC) != WIN32PM_MAGIC) { 585 586 //another (non-win32) application's window … … 588 589 } 589 590 if((ULONG)mp2 == TRUE) { 590 HWND hwndFocusWin32 = Win32BaseWindow::OS2ToWin32Handle(hwndFocus);591 HWND hwndFocusWin32 = OS2ToWin32Handle(hwndFocus); 591 592 recreateCaret (hwndFocusWin32); 592 593 win32wnd->MsgSetFocus(hwndFocusWin32); 593 594 } 594 else win32wnd->MsgKillFocus( Win32BaseWindow::OS2ToWin32Handle(hwndFocus));595 else win32wnd->MsgKillFocus(OS2ToWin32Handle(hwndFocus)); 595 596 break; 596 597 } -
trunk/src/user32/user32.cpp
r4603 r4848 1 /* $Id: user32.cpp,v 1. 89 2000-11-16 16:35:43sandervl Exp $ */1 /* $Id: user32.cpp,v 1.90 2000-12-29 18:39:59 sandervl Exp $ */ 2 2 3 3 /* … … 33 33 #include <os2win.h> 34 34 #include <misc.h> 35 #include <winuser32.h> 35 36 36 37 #include "user32.h" … … 1398 1399 { 1399 1400 dprintf(("USER32: RegisterHotKey, not implemented\n")); 1400 hwnd = Win32 Window::Win32ToOS2Handle(hwnd);1401 hwnd = Win32ToOS2Handle(hwnd); 1401 1402 return(TRUE); 1402 1403 } … … 1476 1477 { 1477 1478 dprintf(("USER32: UnregisterHotKey, not implemented\n")); 1478 hwnd = Win32 Window::Win32ToOS2Handle(hwnd);1479 hwnd = Win32ToOS2Handle(hwnd); 1479 1480 1480 1481 return(TRUE); -
trunk/src/user32/win32wbase.cpp
r4843 r4848 1 /* $Id: win32wbase.cpp,v 1.22 7 2000-12-27 23:07:19 sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.228 2000-12-29 18:39:59 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 30 30 #include <misc.h> 31 31 #include <heapstring.h> 32 #include <win32wbase.h> 32 #include <winuser32.h> 33 #include "win32wbase.h" 33 34 #include "wndmsg.h" 34 35 #include "oslibwin.h" … … 3408 3409 //****************************************************************************** 3409 3410 //****************************************************************************** 3410 HWND Win32BaseWindow::Win32ToOS2Handle(HWND hwnd)3411 {3412 Win32BaseWindow *window = GetWindowFromHandle(hwnd);3413 3414 if(window) {3415 return window->getOS2WindowHandle();3416 }3417 // dprintf2(("Win32BaseWindow::Win32ToOS2Handle: not a win32 window %x", hwnd));3418 return hwnd;3419 }3420 //******************************************************************************3421 //******************************************************************************3422 HWND Win32BaseWindow::OS2ToWin32Handle(HWND hwnd)3423 {3424 Win32BaseWindow *window = GetWindowFromOS2Handle(hwnd);3425 3426 if(window) {3427 return window->getWindowHandle();3428 }3429 // dprintf2(("Win32BaseWindow::OS2ToWin32Handle: not a win32 window %x", hwnd));3430 return 0;3431 // else return hwnd; //OS/2 window handle3432 }3433 //******************************************************************************3434 //******************************************************************************3435 3411 HWND Win32BaseWindow::getNextDlgTabItem(HWND hwndCtrl, BOOL fPrevious) 3436 3412 { … … 3680 3656 //****************************************************************************** 3681 3657 //****************************************************************************** 3658 HWND WIN32API Win32ToOS2Handle(HWND hwnd) 3659 { 3660 Win32BaseWindow *window = Win32BaseWindow::GetWindowFromHandle(hwnd); 3661 3662 if(window) { 3663 return window->getOS2WindowHandle(); 3664 } 3665 // dprintf2(("Win32BaseWindow::Win32ToOS2Handle: not a win32 window %x", hwnd)); 3666 return hwnd; 3667 } 3668 //****************************************************************************** 3669 //****************************************************************************** 3670 HWND WIN32API OS2ToWin32Handle(HWND hwnd) 3671 { 3672 Win32BaseWindow *window = Win32BaseWindow::GetWindowFromOS2Handle(hwnd); 3673 3674 if(window) { 3675 return window->getWindowHandle(); 3676 } 3677 // dprintf2(("Win32BaseWindow::OS2ToWin32Handle: not a win32 window %x", hwnd)); 3678 return 0; 3679 // else return hwnd; //OS/2 window handle 3680 } 3681 //****************************************************************************** 3682 //****************************************************************************** 3682 3683 3683 3684 GenericObject *Win32BaseWindow::windows = NULL; -
trunk/src/user32/win32wbase.h
r4628 r4848 1 /* $Id: win32wbase.h,v 1.10 1 2000-11-19 11:52:41sandervl Exp $ */1 /* $Id: win32wbase.h,v 1.102 2000-12-29 18:40:00 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 297 297 INT enumPropsExW(PROPENUMPROCEXW func, LPARAM lParam); 298 298 299 static HWND Win32ToOS2Handle(HWND hwnd);300 static HWND OS2ToWin32Handle(HWND hwnd);301 302 299 static Win32BaseWindow *GetWindowFromHandle(HWND hwnd); 303 300 static Win32BaseWindow *GetWindowFromOS2Handle(HWND hwnd); -
trunk/src/user32/window.cpp
r4825 r4848 1 /* $Id: window.cpp,v 1.8 5 2000-12-17 15:04:13sandervl Exp $ */1 /* $Id: window.cpp,v 1.86 2000-12-29 18:40:00 sandervl Exp $ */ 2 2 /* 3 3 * Win32 window apis for OS/2 … … 37 37 #include <win\win.h> 38 38 #include <heapstring.h> 39 #include <winuser32.h> 39 40 40 41 #define DBG_LOCALLOG DBG_window … … 669 670 BOOL activate; 670 671 671 hwnd_O = Win32 BaseWindow::Win32ToOS2Handle (hwnd);672 hwnd_O = Win32ToOS2Handle (hwnd); 672 673 lastFocus = OSLibWinQueryFocus (OSLIB_HWND_DESKTOP); 673 674 activate = ((hwnd_O == lastFocus) || OSLibWinIsChild (lastFocus, hwnd_O)); 674 lastFocus_W = Win32BaseWindow::OS2ToWin32Handle (lastFocus);675 lastFocus_W = OS2ToWin32Handle (lastFocus); 675 676 676 677 dprintf(("SetFocus %x (%x) -> %x (%x)\n", lastFocus_W, lastFocus, hwnd, hwnd_O)); … … 685 686 686 687 hwnd = OSLibWinQueryFocus(OSLIB_HWND_DESKTOP); 687 hwnd = Win32BaseWindow::OS2ToWin32Handle(hwnd);688 hwnd = OS2ToWin32Handle(hwnd); 688 689 dprintf(("USER32: GetFocus %x\n", hwnd)); 689 690 return hwnd; … … 705 706 { 706 707 dprintf(("USER32: LockWindowUpdate %x", hwnd)); 707 return OSLibWinLockWindowUpdate(Win32 BaseWindow::Win32ToOS2Handle(hwnd));708 return OSLibWinLockWindowUpdate(Win32ToOS2Handle(hwnd)); 708 709 } 709 710 //****************************************************************************** … … 1148 1149 { 1149 1150 dprintf(("FlashWindow %x %d\n", hwnd, fFlash)); 1150 // return OSLibWinFlashWindow(Win32 BaseWindow::Win32ToOS2Handle(hwnd), fFlash);1151 // return OSLibWinFlashWindow(Win32ToOS2Handle(hwnd), fFlash); 1151 1152 return 1; 1152 1153 } … … 1521 1522 if(hwndOS2) 1522 1523 { 1523 hwnd = Win32BaseWindow::OS2ToWin32Handle(hwndOS2);1524 hwnd = OS2ToWin32Handle(hwndOS2); 1524 1525 if(hwnd) { 1525 1526 dprintf(("WindowFromPoint (%d,%d) %x->%x\n", point.x, point.y, hwndOS2, hwnd)); … … 1591 1592 { 1592 1593 dprintf(("USER32: ArrangeIconicWindows %x", hwnd)); 1593 return O32_ArrangeIconicWindows(Win32 BaseWindow::Win32ToOS2Handle(hwnd));1594 return O32_ArrangeIconicWindows(Win32ToOS2Handle(hwnd)); 1594 1595 } 1595 1596 //****************************************************************************** … … 1666 1667 HWND hwnd; 1667 1668 1668 hwnd = Win32BaseWindow::OS2ToWin32Handle(OSLibWinQueryActiveWindow());1669 hwnd = OS2ToWin32Handle(OSLibWinQueryActiveWindow()); 1669 1670 dprintf(("USER32: GetForegroundWindow returned %x", hwnd)); 1670 1671 return hwnd; … … 1676 1677 HWND hwnd; 1677 1678 1678 hwnd = Win32 BaseWindow::Win32ToOS2Handle(hWnd);1679 hwnd = Win32BaseWindow::OS2ToWin32Handle(O32_GetLastActivePopup(hwnd));1679 hwnd = Win32ToOS2Handle(hWnd); 1680 hwnd = OS2ToWin32Handle(O32_GetLastActivePopup(hwnd)); 1680 1681 1681 1682 dprintf(("GetLastActivePopup %x returned %x NOT CORRECTLY IMPLEMENTED", hWnd, hwnd)); … … 1687 1688 { 1688 1689 dprintf2(("USER32: GetWindowThreadProcessId")); 1689 hWnd = Win32 BaseWindow::Win32ToOS2Handle(hWnd);1690 hWnd = Win32ToOS2Handle(hWnd); 1690 1691 1691 1692 return O32_GetWindowThreadProcessId(hWnd,lpdwProcessId); -
trunk/src/user32/winmouse.cpp
r4697 r4848 1 /* $Id: winmouse.cpp,v 1.1 1 2000-11-25 13:53:54sandervl Exp $ */1 /* $Id: winmouse.cpp,v 1.12 2000-12-29 18:40:00 sandervl Exp $ */ 2 2 /* 3 3 * Mouse handler for DINPUT … … 12 12 #include <misc.h> 13 13 #include "win32wbase.h" 14 #include "win32wnd.h"14 #include <winuser32.h> 15 15 #include <win\mouse.h> 16 16 #include "winmouse.h" … … 110 110 HWND hwnd; 111 111 112 hwnd = Win32Window::OS2ToWin32Handle(OSLibWinQueryCapture());112 hwnd = OS2ToWin32Handle(OSLibWinQueryCapture()); 113 113 dprintf(("USER32: GetCapture returned %x", hwnd)); 114 114 return hwnd; … … 129 129 ReleaseCapture(); 130 130 } 131 rc = OSLibWinSetCapture(Win32 Window::Win32ToOS2Handle(hwnd));131 rc = OSLibWinSetCapture(Win32ToOS2Handle(hwnd)); 132 132 dprintf(("USER32: SetCapture %x (prev %x) returned %d", hwnd, hwndPrev, rc)); 133 133 if(hwndPrev) {
Note:
See TracChangeset
for help on using the changeset viewer.