Ignore:
Timestamp:
Jul 18, 1999, 4:56:37 PM (26 years ago)
Author:
sandervl
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/new/win32wnd.cpp

    r328 r329  
    1 /* $Id: win32wnd.cpp,v 1.11 1999-07-18 14:39:35 sandervl Exp $ */
     1/* $Id: win32wnd.cpp,v 1.12 1999-07-18 14:56:37 sandervl Exp $ */
    22/*
    33 * Win32 Window Code for OS/2
     
    666666//******************************************************************************
    667667ULONG Win32Window::MsgMove(ULONG xParent, ULONG yParent)
    668 {       
     668{
    669669  return SendInternalMessageA(WM_MOVE, 0, MAKELONG((USHORT)xParent, (USHORT)yParent));
    670670}
     
    770770
    771771  if(keystate & WMMOVE_LBUTTON)
    772         winstate |= MK_LBUTTON;
     772    winstate |= MK_LBUTTON;
    773773  if(keystate & WMMOVE_RBUTTON)
    774         winstate |= MK_RBUTTON;
     774    winstate |= MK_RBUTTON;
    775775  if(keystate & WMMOVE_MBUTTON)
    776         winstate |= MK_MBUTTON;
     776    winstate |= MK_MBUTTON;
    777777  if(keystate & WMMOVE_SHIFT)
    778         winstate |= MK_SHIFT;
     778    winstate |= MK_SHIFT;
    779779  if(keystate & WMMOVE_CTRL)
    780         winstate |= MK_CONTROL;
    781        
     780    winstate |= MK_CONTROL;
     781
    782782   return SendInternalMessageA(WM_MOUSEMOVE, keystate, MAKELONG(x, y));
    783783}
     
    792792ULONG Win32Window::MsgEraseBackGround(ULONG hps)
    793793{
    794         if(isIcon) {
    795                         return SendInternalMessageA(WM_ICONERASEBKGND, hps, 0);
    796         }
    797         else    return SendInternalMessageA(WM_ERASEBKGND, hps, 0);
     794    if(isIcon) {
     795            return SendInternalMessageA(WM_ICONERASEBKGND, hps, 0);
     796    }
     797    else    return SendInternalMessageA(WM_ERASEBKGND, hps, 0);
    798798}
    799799//******************************************************************************
     
    802802{
    803803  if(isUnicode) {
    804         return SendInternalMessageW(WM_SETTEXT, 0, (LPARAM)lpsz);
     804        return SendInternalMessageW(WM_SETTEXT, 0, (LPARAM)lpsz);
    805805  }
    806806  else  return SendInternalMessageA(WM_SETTEXT, 0, (LPARAM)lpsz);
     
    14691469//******************************************************************************
    14701470//******************************************************************************
     1471Win32Window *Win32Window::GetWindowFromOS2Handle(HWND hwnd)
     1472{
     1473 Win32Window *win32wnd;
     1474 DWORD        magic;
     1475
     1476  win32wnd = (Win32Window *)OSLibWinGetWindowULong(hwnd, OFFSET_WIN32WNDPTR);
     1477  magic    = OSLibWinGetWindowULong(hwnd, OFFSET_WIN32PM_MAGIC);
     1478
     1479  if(win32wnd && CheckMagicDword(magic)) {
     1480    return win32wnd;
     1481  }
     1482  return 0;
     1483}
     1484//******************************************************************************
     1485//******************************************************************************
    14711486GenericObject *Win32Window::windows  = NULL;
Note: See TracChangeset for help on using the changeset viewer.