Ignore:
Timestamp:
Dec 29, 2000, 7:41:23 PM (25 years ago)
Author:
sandervl
Message:

Win32ToOS2Handle & OS2ToWin32Handle exported with stdcall calling convention

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/win32wbase.cpp

    r4843 r4848  
    1 /* $Id: win32wbase.cpp,v 1.227 2000-12-27 23:07:19 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.228 2000-12-29 18:39:59 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    3030#include <misc.h>
    3131#include <heapstring.h>
    32 #include <win32wbase.h>
     32#include <winuser32.h>
     33#include "win32wbase.h"
    3334#include "wndmsg.h"
    3435#include "oslibwin.h"
     
    34083409//******************************************************************************
    34093410//******************************************************************************
    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 handle
    3432 }
    3433 //******************************************************************************
    3434 //******************************************************************************
    34353411HWND Win32BaseWindow::getNextDlgTabItem(HWND hwndCtrl, BOOL fPrevious)
    34363412{
     
    36803656//******************************************************************************
    36813657//******************************************************************************
     3658HWND 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//******************************************************************************
     3670HWND 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//******************************************************************************
    36823683
    36833684GenericObject *Win32BaseWindow::windows  = NULL;
Note: See TracChangeset for help on using the changeset viewer.