Changeset 4945 for trunk/src


Ignore:
Timestamp:
Jan 14, 2001, 6:15:47 PM (25 years ago)
Author:
sandervl
Message:

listbox, combobox and notifyframe fixes

Location:
trunk/src/user32
Files:
5 edited

Legend:

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

    r3584 r4945  
    1 /* $Id: listbox.cpp,v 1.25 2000-05-22 17:21:08 cbratschi Exp $ */
     1/* $Id: listbox.cpp,v 1.26 2001-01-14 17:15:46 sandervl Exp $ */
    22/*
    33 * Listbox controls
     
    17241724            else  /* not a directory */
    17251725            {
     1726#ifdef __WIN32OS2__
    17261727#define ATTRIBS (FILE_ATTRIBUTE_READONLY | FILE_ATTRIBUTE_HIDDEN | \
    1727                  FILE_ATTRIBUTE_SYSTEM | FILE_ATTRIBUTE_ARCHIVE)
     1728                 FILE_ATTRIBUTE_SYSTEM | FILE_ATTRIBUTE_ARCHIVE | FILE_ATTRIBUTE_NORMAL)
     1729#else
     1730#define ATTRIBS (FILE_ATTRIBUTE_READONLY | FILE_ATTRIBUTE_HIDDEN | \
     1731                 FILE_ATTRIBUTE_SYSTEM | FILE_ATTRIBUTE_ARCHIVE )
     1732#endif
    17281733
    17291734                if ((attrib & DDL_EXCLUSIVE) &&
     
    29562961    if( descr )
    29572962    {
    2958         LRESULT     lRet = LISTBOX_Directory( lphc->hwndself, descr, attrib, dir, bLong );
     2963#ifdef __WIN32OS2__
     2964        //bugfix
     2965        LRESULT lRet = LISTBOX_Directory( lphc->hWndLBox, descr, attrib, dir, bLong );
     2966#else
     2967        LRESULT lRet = LISTBOX_Directory( lphc->hwndself, descr, attrib, dir, bLong );
     2968#endif
    29592969
    29602970        RedrawWindow( lphc->hwndself, NULL, 0,
  • trunk/src/user32/pmwindow.cpp

    r4848 r4945  
    1 /* $Id: pmwindow.cpp,v 1.111 2000-12-29 18:39:58 sandervl Exp $ */
     1/* $Id: pmwindow.cpp,v 1.112 2001-01-14 17:15:46 sandervl Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    166166        goto RunDefWndProc;
    167167    }
     168////    if(teb->o.odin.fIgnoreMsgs) {
     169////        goto RunDefWndProc;
     170////    }
    168171
    169172    if((teb->o.odin.msgstate & 1) == 0)
     
    988991        goto RunDefFrameWndProc;
    989992    }
     993////    if(teb->o.odin.fIgnoreMsgs) {
     994////        goto RunDefWndProc;
     995////    }
    990996
    991997    if((teb->o.odin.msgstate & 1) == 0)
  • trunk/src/user32/win32wbase.cpp

    r4848 r4945  
    1 /* $Id: win32wbase.cpp,v 1.228 2000-12-29 18:39:59 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.229 2001-01-14 17:15:47 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    22212221   RECT oldClientRect = rectClient;
    22222222
     2223    if(getWindowHandle() == 0x68000010) {
     2224        hParent = 0;
     2225    }
    22232226    if (fuFlags &
    22242227       ~(SWP_NOSIZE     | SWP_NOMOVE     | SWP_NOZORDER     |
     
    23852388
    23862389    MsgFormatFrame(NULL);
     2390
    23872391    if(RECT_WIDTH(rectClient) != RECT_WIDTH(*oldClientRect) ||
    23882392       RECT_HEIGHT(rectClient) != RECT_HEIGHT(*oldClientRect))
    23892393    {
    2390          wpos->flags &= ~SWP_NOSIZE;
     2394         wpos->flags &= ~(SWP_NOSIZE|SWP_NOCLIENTSIZE);
     2395         wpos->cx     = RECT_WIDTH(rectWindow);
     2396         wpos->cy     = RECT_HEIGHT(rectWindow);
     2397    }
     2398
     2399    if(rectClient.left != oldClientRect->left ||
     2400       rectClient.top != oldClientRect->top)
     2401    {
     2402         wpos->flags &= ~(SWP_NOMOVE|SWP_NOCLIENTMOVE);
     2403         wpos->x      = rectWindow.left;
     2404         wpos->y      = rectWindow.top;
    23912405    }
    23922406
  • trunk/src/user32/win32wbasepos.cpp

    r4452 r4945  
    1 /* $Id: win32wbasepos.cpp,v 1.17 2000-10-08 14:03:49 sandervl Exp $ */
     1/* $Id: win32wbasepos.cpp,v 1.18 2001-01-14 17:15:47 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2 (nonclient/position methods)
     
    133133   NCCALCSIZE_PARAMS params;
    134134   WINDOWPOS winposCopy;
    135    LONG result;
     135   LONG result = 0;
    136136
    137137   /* Send WM_NCCALCSIZE message to get new client area */
    138 //   if((winpos->flags & (SWP_FRAMECHANGED | SWP_NOSIZE)) != SWP_NOSIZE )
    139 //   {
     138   if((winpos->flags & (SWP_FRAMECHANGED | SWP_NOSIZE)) != SWP_NOSIZE )
     139   {
    140140        params.rgrc[0] = *newWindowRect;
    141141        if(calcValidRect)
     
    167167             winpos->flags &= ~SWP_NOCLIENTSIZE;
    168168
    169 //   }
    170 //   else
    171 //   if(!(winpos->flags & SWP_NOMOVE) &&
    172 //       (newClientRect->left != rectClient.left || newClientRect->top != rectClient.top)) {
    173 //            winpos->flags &= ~SWP_NOCLIENTMOVE;
    174 //   }
     169   }
     170   else
     171   if(!(winpos->flags & SWP_NOMOVE) &&
     172       (newClientRect->left != rectClient.left || newClientRect->top != rectClient.top)) {
     173            winpos->flags &= ~SWP_NOCLIENTMOVE;
     174   }
    175175   return result;
    176176}
  • trunk/src/user32/windowword.cpp

    r2803 r4945  
    1 /* $Id: windowword.cpp,v 1.8 2000-02-16 14:28:27 sandervl Exp $ */
     1/* $Id: windowword.cpp,v 1.9 2001-01-14 17:15:47 sandervl Exp $ */
    22
    33/*
     
    3030    }
    3131    else {
    32          dprintf(("SetWindowLongA; window %x not found!", hwnd));
     32         dprintf(("SetWindowLongA %d %x; window %x not found!", nIndex, lNewLong, hwnd));
    3333    }
    3434    return 0;
Note: See TracChangeset for help on using the changeset viewer.