Changeset 4848 for trunk/src/user32/win32wbase.cpp
- Timestamp:
- Dec 29, 2000, 7:41:23 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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;
Note:
See TracChangeset
for help on using the changeset viewer.