Changeset 22081 for branches/swt/src


Ignore:
Timestamp:
Aug 23, 2014, 4:21:44 PM (11 years ago)
Author:
rousseau
Message:

Modified or replaced some structures

structures:
o DEVMODEA
o DEVMODEW
o NMLVCUSTOMDRAW
o NOTIFYICONDATAA
o NOTIFYICONDATAW
o OPENFILENAME
o OSVERSIONINFOA
o OSVERSIONINFOW
o OSVERSIONINFOEXA
o OSVERSIONINFOEXW
o SCROLLBARINFO
o SHELLEXECUTEINFOA
o SHELLEXECUTEINFOW
o TTTOOLINFOA
o TTTOOLINFOW

All sources for swt.dll now compile.

Location:
branches/swt/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/swt/src/kernel32/version.cpp

    r22031 r22081  
    7575        ODINNT_VERSION,
    7676        {
    77             sizeof(OSVERSIONINFOA), ODINNT_MAJOR_VERSION, ODINNT_MINOR_VERSION, 
     77            sizeof(OSVERSIONINFOA), ODINNT_MAJOR_VERSION, ODINNT_MINOR_VERSION,
    7878            ODINNT_BUILD_NR, VER_PLATFORM_WIN32_NT, ODINNT_CSDVERSION,
    7979            6, 0, 0, 0
     
    117117//******************************************************************************
    118118//******************************************************************************
    119 void WIN32API OdinSetVersion(ULONG version) 
     119void WIN32API OdinSetVersion(ULONG version)
    120120{
    121121    switch(version) {
     
    127127    case WINVERSION_WINXPSP3:
    128128        break;
    129     default: 
     129    default:
    130130        DebugInt3();
    131131        return;
     
    139139    char szVersion[16];
    140140
    141     if(PROFILE_GetOdinIniString(PROFILE_WINVERSION_SECTION, PROFILE_WINVERSION_KEY, 
    142                                 "", szVersion, sizeof(szVersion)-1) > 1) 
     141    if(PROFILE_GetOdinIniString(PROFILE_WINVERSION_SECTION, PROFILE_WINVERSION_KEY,
     142                                "", szVersion, sizeof(szVersion)-1) > 1)
    143143    {
    144144        if(!stricmp(szVersion, PROFILE_WINVERSION_WIN98)) {
     
    201201    dprintf(("szCSDVersion %s", lpVersionInformation->szCSDVersion));
    202202
    203     if(lpVersionInformation->dwOSVersionInfoSize == sizeof(OSVERSIONINFOEXA)) 
     203    if(lpVersionInformation->dwOSVersionInfoSize == sizeof(OSVERSIONINFOEXA))
    204204    {//Windows 2000 (and up) extension
    205205        LPOSVERSIONINFOEXA lpVersionExInformation = (LPOSVERSIONINFOEXA)lpVersionInformation;
     
    207207        lpVersionExInformation->wServicePackMajor = VersionData[winversion].getVersionEx.wServicePackMajor;
    208208        lpVersionExInformation->wServicePackMinor = VersionData[winversion].getVersionEx.wServicePackMinor;
     209/*
    209210        lpVersionExInformation->wReserved[0]      = VersionData[winversion].getVersionEx.wReserved[0];
    210211        lpVersionExInformation->wReserved[1]      = VersionData[winversion].getVersionEx.wReserved[1];
    211    
     212*/
     213///-------------------------------------------------------------------[swt-os2]
     214        lpVersionExInformation->wSuiteMask        = VersionData[winversion].getVersionEx.wSuiteMask;
     215        lpVersionExInformation->wProductType      = VersionData[winversion].getVersionEx.wProductType;
     216        lpVersionExInformation->wReserved         = VersionData[winversion].getVersionEx.wReserved;
     217///----------------------------------------------------------------------------
     218
    212219        dprintf(("service pack version %x.%x", lpVersionExInformation->wServicePackMajor, lpVersionExInformation->wServicePackMinor));
    213220    }
    214    
     221
    215222    SetLastError(ERROR_SUCCESS);
    216223    return(TRUE);
     
    244251    lstrcpyAtoW(lpVersionInformation->szCSDVersion, VersionData[winversion].getVersionEx.szCSDVersion);
    245252
    246     if(lpVersionInformation->dwOSVersionInfoSize == sizeof(OSVERSIONINFOEXW)) 
     253    if(lpVersionInformation->dwOSVersionInfoSize == sizeof(OSVERSIONINFOEXW))
    247254    {//Windows 2000 (and up) extension
    248255        LPOSVERSIONINFOEXW lpVersionExInformation = (LPOSVERSIONINFOEXW)lpVersionInformation;
    249    
     256
    250257        lpVersionExInformation->wServicePackMajor = VersionData[winversion].getVersionEx.wServicePackMajor;
    251258        lpVersionExInformation->wServicePackMinor = VersionData[winversion].getVersionEx.wServicePackMinor;
     259/*
    252260        lpVersionExInformation->wReserved[0]      = VersionData[winversion].getVersionEx.wReserved[0];
    253261        lpVersionExInformation->wReserved[1]      = VersionData[winversion].getVersionEx.wReserved[1];
     262*/
     263///-------------------------------------------------------------------[swt-os2]
     264        lpVersionExInformation->wSuiteMask        = VersionData[winversion].getVersionEx.wSuiteMask;
     265        lpVersionExInformation->wProductType      = VersionData[winversion].getVersionEx.wProductType;
     266        lpVersionExInformation->wReserved         = VersionData[winversion].getVersionEx.wReserved;
     267///----------------------------------------------------------------------------
    254268    }
    255269    SetLastError(ERROR_SUCCESS);
  • branches/swt/src/user32/scroll.cpp

    r10119 r22081  
    140140          lprect->left--;
    141141          lprect->right++;
    142         } 
    143         else 
     142        }
     143        else
    144144        if (win32wnd->getStyle() & WS_VSCROLL)
    145145            lprect->right++;
     
    164164          lprect->top--;
    165165          lprect->bottom++;
    166         } 
    167         else 
     166        }
     167        else
    168168        if (win32wnd->getStyle() & WS_HSCROLL)
    169169          lprect->bottom++;
     
    982982            SCROLL_DrawMovingThumb(hdc, &rect, vertical, arrowSize, thumbSize);
    983983#ifdef __WIN32OS2__
    984             //This message is sent in Windows when the user clicks on the 
     984            //This message is sent in Windows when the user clicks on the
    985985            //scroll thumb (even without moving) (NT4, SP6)
    986986            SendMessageA( hwndOwner, vertical ? WM_VSCROLL : WM_HSCROLL,
     
    13431343            infoPtr->Page = info->nPage;
    13441344            action |= SA_SSI_REPAINT_INTERIOR;
    1345             bChangeParams = TRUE; 
     1345            bChangeParams = TRUE;
    13461346        }
    13471347    }
     
    13681368            infoPtr->MinVal = 0;
    13691369            infoPtr->MaxVal = 0;
    1370             bChangeParams = TRUE; 
     1370            bChangeParams = TRUE;
    13711371        }
    13721372        else
     
    13781378                infoPtr->MinVal = info->nMin;
    13791379                infoPtr->MaxVal = info->nMax;
    1380                 bChangeParams = TRUE; 
     1380                bChangeParams = TRUE;
    13811381            }
    13821382        }
     
    14161416          new_flags = ESB_DISABLE_BOTH;
    14171417          action |= SA_SSI_REFRESH;
    1418         } 
    1419         else 
     1418        }
     1419        else
    14201420        if (nBar != SB_CTL && bChangeParams)
    14211421        {
     
    14241424          goto done;
    14251425        }
    1426       } 
     1426      }
    14271427      else  /* Show and enable scroll-bar */
    14281428      {
     
    15871587//testestset
    15881588    static int nestlevel = 0;
    1589    
     1589
    15901590    //NOTE: This is an ugly workaround for an endless loop in CVP
    15911591    //      Need to make sure there isn't a better fix.
    1592     if(++nestlevel == 1) 
     1592    if(++nestlevel == 1)
    15931593        SetScrollInfo( hwnd, nBar, &info, bRedraw );
    15941594    nestlevel--;
     
    17641764  SCROLL_GetScrollBarRect(hwnd,nBar,&psbi->rcScrollBar,&arrowSize,&psbi->dxyLineButton,&psbi->xyThumbTop);
    17651765  psbi->xyThumbBottom = psbi->xyThumbTop+psbi->dxyLineButton;
    1766   psbi->bogus = 0; //CB: undocumented!
     1766  //~ psbi->bogus = 0; //CB: undocumented!
     1767///-------------------------------------------------------------------[swt-os2]
     1768  psbi->reserved = 0; //CB: undocumented!
     1769///----------------------------------------------------------------------------
    17671770  psbi->rgstate[0] = IsWindowVisible(hwnd) ? STATE_SYSTEM_INVISIBLE:0;
    17681771  psbi->rgstate[1] = psbi->rgstate[2] = psbi->rgstate[3] = psbi->rgstate[4] = psbi->rgstate[5] = psbi->rgstate[0]; //CB: todo
Note: See TracChangeset for help on using the changeset viewer.