Changeset 1550 for trunk/src


Ignore:
Timestamp:
Nov 2, 1999, 8:13:01 PM (26 years ago)
Author:
sandervl
Message:

FS bugfixes

Location:
trunk/src/user32
Files:
5 edited

Legend:

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

    r1433 r1550  
    1 /* $Id: combo.cpp,v 1.10 1999-10-24 22:56:01 sandervl Exp $ */
     1/* $Id: combo.cpp,v 1.11 1999-11-02 19:12:59 sandervl Exp $ */
    22/*
    33 * Combo controls
     
    6262    BOOL      bRet = FALSE;
    6363
    64 //SvL: Combo bitmap is invalid
    65     hComboBmp = LoadBitmapA(0, MAKEINTRESOURCEA(OBM_COMBO));
    66 //    hComboBmp = LoadBitmapA(hInstanceUser32, MAKEINTRESOURCEA(OBM_COMBO));
     64    hComboBmp = LoadBitmapA(hInstanceUser32, MAKEINTRESOURCEA(OBM_COMBO));
    6765    if(hComboBmp)
    6866    {
  • trunk/src/user32/dc.cpp

    r1525 r1550  
    1 /* $Id: dc.cpp,v 1.18 1999-10-30 18:40:43 cbratschi Exp $ */
     1/* $Id: dc.cpp,v 1.19 1999-11-02 19:13:00 sandervl Exp $ */
    22
    33/*
     
    1919#define INCL_DEV
    2020#include <os2wrap.h>
    21 #include <pmddi.h>
     21//#include <pmddi.h>
    2222#include <stdlib.h>
    2323
  • trunk/src/user32/dc.h

    r1525 r1550  
    1 /* $Id: dc.h,v 1.6 1999-10-30 18:40:44 cbratschi Exp $ */
     1/* $Id: dc.h,v 1.7 1999-11-02 19:13:00 sandervl Exp $ */
    22/*
    33 * public dc functions
     
    410410}
    411411
     412
     413   // from pmddi.h:
     414   /* CopyClipRegion */
     415   
     416   #define COPYCRGN_ALLINTERSECT        0L
     417   #define COPYCRGN_VISRGN              1L
     418   #define COPYCRGN_CLIPRGN             2L
     419
     420   /* SetupDC */
     421   
     422   #define SETUPDC_VISRGN               0x00000001L
     423   #define SETUPDC_ORIGIN               0x00000002L
     424   #define SETUPDC_ACCUMBOUNDSON        0x00000004L
     425   #define SETUPDC_ACCUMBOUNDSOFF       0x00000008L
     426   #define SETUPDC_RECALCCLIP           0x00000010L
     427   #define SETUPDC_SETOWNER             0x00000020L
     428   #define SETUPDC_CLEANDC              0x00000040L
     429
     430ULONG APIENTRY Gre32Entry4(ULONG,ULONG,ULONG,ULONG);
     431
     432inline ULONG APIENTRY _Gre32Entry4 (ULONG a, ULONG b, ULONG c, ULONG d)
     433{
     434 ULONG yyrc;
     435 USHORT sel = RestoreOS2FS();
     436
     437    yyrc = Gre32Entry4(a,b,c,d);
     438    SetFS(sel);
     439
     440    return yyrc;
     441}
     442
     443ULONG APIENTRY Gre32Entry5(ULONG,ULONG,ULONG,ULONG,ULONG);
     444
     445inline ULONG APIENTRY _Gre32Entry5 (ULONG a, ULONG b, ULONG c, ULONG d, ULONG e)
     446{
     447 ULONG yyrc;
     448 USHORT sel = RestoreOS2FS();
     449
     450    yyrc = Gre32Entry5(a,b,c,d,e);
     451    SetFS(sel);
     452
     453    return yyrc;
     454}
     455
     456
     457ULONG APIENTRY Gre32Entry6(ULONG,ULONG,ULONG,ULONG,ULONG,ULONG);
     458
     459inline ULONG APIENTRY _Gre32Entry6 (ULONG a, ULONG b, ULONG c, ULONG d, ULONG e, ULONG f)
     460{
     461 ULONG yyrc;
     462 USHORT sel = RestoreOS2FS();
     463
     464    yyrc = Gre32Entry6(a,b,c,d,e,f);
     465    SetFS(sel);
     466
     467    return yyrc;
     468}
     469
     470ULONG APIENTRY Gre32Entry7(ULONG,ULONG,ULONG,ULONG,ULONG,ULONG,ULONG);
     471
     472inline ULONG APIENTRY _Gre32Entry7 (ULONG a, ULONG b, ULONG c, ULONG d, ULONG e, ULONG f, ULONG g)
     473{
     474 ULONG yyrc;
     475 USHORT sel = RestoreOS2FS();
     476
     477    yyrc = Gre32Entry7(a,b,c,d,e,f,g);
     478    SetFS(sel);
     479
     480    return yyrc;
     481}
     482
     483ULONG APIENTRY Gre32Entry8(ULONG,ULONG,ULONG,ULONG,ULONG,ULONG,ULONG,ULONG);
     484
     485inline ULONG APIENTRY _Gre32Entry8 (ULONG a, ULONG b, ULONG c, ULONG d, ULONG e, ULONG f, ULONG g, ULONG h)
     486{
     487 ULONG yyrc;
     488 USHORT sel = RestoreOS2FS();
     489
     490    yyrc = Gre32Entry8(a,b,c,d,e,f,g,h);
     491    SetFS(sel);
     492
     493    return yyrc;
     494}
     495
     496
     497   #define GreSetupDC(a,b,c,d,e,f) (BOOL) _Gre32Entry8((ULONG)(HDC)(a),(ULONG)(HRGN)(b),(ULONG)(LONG)(c),(ULONG)(LONG)(d),(ULONG)(PRECTL)(e),(ULONG)(ULONG)(f),0L,0x00004081L)
     498   #define GreCreateRectRegion(a,b,c) (HRGN) _Gre32Entry5((ULONG)(HDC)(a),(ULONG)(PRECTL)(b),(ULONG)(LONG)(c),0L,0x00004062L)
     499   #define GreGetPageUnits(a,b) (LONG) _Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PULONG)(b),0L,0x00004083L)
     500   #define GreCopyClipRegion(a,b,c,d) (INT) _Gre32Entry6((ULONG)(HDC)(a),(ULONG)(HRGN)(b),(ULONG)(PRECTL)(c),(ULONG)(ULONG)(d),0L,0x00004080L)
     501   #define GreCombineRegion(a,b,c,d,e) (INT) _Gre32Entry7((ULONG)(HDC)(a),(ULONG)(HRGN)(b),(ULONG)(HRGN)(c),(ULONG)(HRGN)(d),(ULONG)(ULONG)(e),0L,0x00004065L)
     502   #define GreDestroyRegion(a,b) (BOOL) _Gre32Entry4((ULONG)(HDC)(a),(ULONG)(HRGN)(b),0L,0x00004063L)
     503
    412504#endif //INCLUDED_BY_DC
    413505
  • trunk/src/user32/edit.cpp

    r1446 r1550  
    1 /* $Id: edit.cpp,v 1.9 1999-10-25 20:17:17 sandervl Exp $ */
     1/* $Id: edit.cpp,v 1.10 1999-11-02 19:13:00 sandervl Exp $ */
    22/*
    33 *      Edit control
     
    31743174        BOOL after_wrap;
    31753175
    3176         //SvL: Set focus
    3177 //        SetFocus(hwnd);
    3178 
    31793176        if (!(es->flags & EF_FOCUSED))
    31803177                return 0;
     
    34623459                EDIT_InvalidateText(hwnd, es, es->selection_start, es->selection_end);
    34633460        ShowCaret(hwnd);
    3464 //SvL: TEST
    3465 //        EDIT_NOTIFY_PARENT(hwnd, EN_SETFOCUS, "EN_SETFOCUS");
     3461        EDIT_NOTIFY_PARENT(hwnd, EN_SETFOCUS, "EN_SETFOCUS");
    34663462}
    34673463
  • trunk/src/user32/pmwindow.cpp

    r1528 r1550  
    1 /* $Id: pmwindow.cpp,v 1.49 1999-10-31 01:23:15 sandervl Exp $ */
     1/* $Id: pmwindow.cpp,v 1.50 1999-11-02 19:13:01 sandervl Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    877877    // Only send this message if the window is enabled
    878878        if (WinIsWindowEnabled(hwnd))
    879     {
     879        {
    880880            if(win32wnd->MsgHitTest((*(POINTS *)&mp1).x, MapOS2ToWin32Y(OSLIB_HWND_DESKTOP, hwnd, (*(POINTS *)&mp1).y))) {
    881881                    goto RunDefWndProc;
    882         }
     882            }
    883883        }
    884884        else    goto RunDefWndProc;
Note: See TracChangeset for help on using the changeset viewer.