Changeset 22081 for branches


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
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • branches/swt/include/win/commctrl.h

    r22080 r22081  
    16081608    LPSTR lpszText;
    16091609    LPARAM lParam;
     1610///-------------------------------------------------------------------[swt-os2]
     1611    void *lpReserved;
     1612///----------------------------------------------------------------------------
    16101613} TTTOOLINFOA, *LPTOOLINFOA, *PTOOLINFOA, *LPTTTOOLINFOA;
    16111614
     
    16191622    LPWSTR lpszText;
    16201623    LPARAM lParam;
     1624///-------------------------------------------------------------------[swt-os2]
     1625    void *lpReserved;
     1626///----------------------------------------------------------------------------
    16211627} TTTOOLINFOW, *LPTOOLINFOW, *PTOOLINFOW, *LPTTTOOLINFOW;
    16221628
     
    32323238#define NMLVCUSTOMDRAW_V3_SIZE CCSIZEOF_STRUCT(NMLCUSTOMDRW, clrTextBk)
    32333239
     3240///-------------------------------------------------------------------[swt-os2]
     3241/// Substituted the Wine structure, which is different in layout and size.
     3242/*
    32343243typedef struct tagNMLVCUSTOMDRAW
    32353244{
     
    32393248    int iSubItem;
    32403249} NMLVCUSTOMDRAW, *LPNMLVCUSTOMDRAW;
     3250*/
     3251typedef struct tagNMLVCUSTOMDRAW
     3252{
     3253    NMCUSTOMDRAW nmcd;
     3254    COLORREF clrText;
     3255    COLORREF clrTextBk;
     3256    int iSubItem;       /* (_WIN32_IE >= 0x0400) */
     3257    DWORD dwItemType;   /* (_WIN32_IE >= 0x560) */
     3258    COLORREF clrFace;   /* (_WIN32_IE >= 0x560) */
     3259    int iIconEffect;    /* (_WIN32_IE >= 0x560) */
     3260    int iIconPhase;     /* (_WIN32_IE >= 0x560) */
     3261    int iPartId;        /* (_WIN32_IE >= 0x560) */
     3262    int iStateId;       /* (_WIN32_IE >= 0x560) */
     3263    RECT rcText;        /* (_WIN32_IE >= 0x560) */
     3264    UINT uAlign;        /* (_WIN32_IE >= 0x560) */
     3265} NMLVCUSTOMDRAW, *LPNMLVCUSTOMDRAW;
     3266///----------------------------------------------------------------------------
    32413267
    32423268typedef struct tagNMLVCACHEHINT
  • branches/swt/include/win/commdlg.h

    r21916 r22081  
    1 /* 
     1/*
    22 * COMMDLG - Common Wine Dialog ... :-)
    33 */
     
    3535#define OFN_NOREADONLYRETURN         0x00008000
    3636#define OFN_NOTESTFILECREATE         0x00010000
    37 #define OFN_NONETWORKBUTTON          0x00020000 
     37#define OFN_NONETWORKBUTTON          0x00020000
    3838#define OFN_NOLONGNAMES              0x00040000
    3939#define OFN_EXPLORER                 0x00080000
     
    5555#define SAVE_DIALOG  1
    5656#define OPEN_DIALOG  2
    57    
     57
    5858typedef UINT16 (* CALLBACK LPOFNHOOKPROC16)(HWND16,UINT16,WPARAM16,LPARAM);
    5959typedef UINT (* CALLBACK LPOFNHOOKPROC)(HWND,UINT,WPARAM,LPARAM);
     
    103103        LPOFNHOOKPROC   lpfnHook;
    104104        LPCSTR          lpTemplateName;
     105///-------------------------------------------------------------------[swt-os2]
     106        void           *pvReserved;
     107        DWORD           dwReserved;
     108        DWORD           FlagsEx;
     109///----------------------------------------------------------------------------
    105110} OPENFILENAMEA,*LPOPENFILENAMEA;
    106111
     
    126131        LPOFNHOOKPROC   lpfnHook;
    127132        LPCWSTR         lpTemplateName;
     133///-------------------------------------------------------------------[swt-os2]
     134        void           *pvReserved;
     135        DWORD           dwReserved;
     136        DWORD           FlagsEx;
     137///----------------------------------------------------------------------------
    128138} OPENFILENAMEW,*LPOPENFILENAMEW;
    129139
     
    147157DECL_WINELIB_TYPE_AW(OFNOTIFY)
    148158DECL_WINELIB_TYPE_AW(LPOFNOTIFY)
    149  
     159
    150160typedef UINT16 (* CALLBACK LPCCHOOKPROC16) (HWND16, UINT16, WPARAM16, LPARAM);
    151161typedef UINT (* CALLBACK LPCCHOOKPROC) (HWND, UINT, WPARAM, LPARAM);
     
    249259        LPCWSTR         lpTemplateName;
    250260        } FINDREPLACEW, *LPFINDREPLACEW;
    251        
     261
    252262DECL_WINELIB_TYPE_AW(FINDREPLACE)
    253263DECL_WINELIB_TYPE_AW(LPFINDREPLACE)
    254        
     264
    255265#define FR_DOWN                         0x00000001
    256266#define FR_WHOLEWORD                    0x00000002
     
    274284typedef UINT (* CALLBACK LPCFHOOKPROC)(HWND,UINT,WPARAM,LPARAM);
    275285
    276 typedef struct 
     286typedef struct
    277287{
    278288        DWORD                   lStructSize;
     
    301311typedef struct
    302312{
    303         UINT    lStructSize; 
    304         HWND            hwndOwner; 
    305         HDC             hDC; 
    306         LPLOGFONTA    lpLogFont; 
    307         INT             iPointSize; 
    308         DWORD           Flags; 
    309         COLORREF        rgbColors; 
    310         LPARAM          lCustData; 
    311         LPCFHOOKPROC    lpfnHook; 
    312         LPCSTR          lpTemplateName; 
    313         HINSTANCE       hInstance; 
    314         LPSTR           lpszStyle; 
    315         UINT16          nFontType; 
    316         UINT16  ___MISSING_ALIGNMENT__; 
    317         INT     nSizeMin; 
    318         INT             nSizeMax; 
     313        UINT    lStructSize;
     314        HWND            hwndOwner;
     315        HDC             hDC;
     316        LPLOGFONTA    lpLogFont;
     317        INT             iPointSize;
     318        DWORD           Flags;
     319        COLORREF        rgbColors;
     320        LPARAM          lCustData;
     321        LPCFHOOKPROC    lpfnHook;
     322        LPCSTR          lpTemplateName;
     323        HINSTANCE       hInstance;
     324        LPSTR           lpszStyle;
     325        UINT16          nFontType;
     326        UINT16  ___MISSING_ALIGNMENT__;
     327        INT     nSizeMin;
     328        INT             nSizeMax;
    319329} CHOOSEFONTA, *LPCHOOSEFONTA;
    320330
    321331typedef struct
    322332{
    323         UINT    lStructSize; 
    324         HWND            hwndOwner; 
    325         HDC             hDC; 
    326         LPLOGFONTW    lpLogFont; 
    327         INT             iPointSize; 
    328         DWORD           Flags; 
    329         COLORREF        rgbColors; 
    330         LPARAM          lCustData; 
    331         LPCFHOOKPROC    lpfnHook; 
    332         LPCWSTR         lpTemplateName; 
    333         HINSTANCE       hInstance; 
    334         LPWSTR          lpszStyle; 
    335         UINT16          nFontType; 
    336         UINT16  ___MISSING_ALIGNMENT__; 
    337         INT     nSizeMin; 
    338         INT             nSizeMax; 
     333        UINT    lStructSize;
     334        HWND            hwndOwner;
     335        HDC             hDC;
     336        LPLOGFONTW    lpLogFont;
     337        INT             iPointSize;
     338        DWORD           Flags;
     339        COLORREF        rgbColors;
     340        LPARAM          lCustData;
     341        LPCFHOOKPROC    lpfnHook;
     342        LPCWSTR         lpTemplateName;
     343        HINSTANCE       hInstance;
     344        LPWSTR          lpszStyle;
     345        UINT16          nFontType;
     346        UINT16  ___MISSING_ALIGNMENT__;
     347        INT     nSizeMin;
     348        INT             nSizeMax;
    339349} CHOOSEFONTW, *LPCHOOSEFONTW;
    340350
     
    701711#define FormatCharDlgProc WINELIB_NAME_AW(FormatCharDlgProc)
    702712
    703 void COMDLG32_SetCommDlgExtendedError(DWORD err); 
     713void COMDLG32_SetCommDlgExtendedError(DWORD err);
    704714
    705715
  • branches/swt/include/win/shellapi.h

    r21916 r22081  
    33
    44#include "windef.h"
     5///-------------------------------------------------------------------[swt-os2]
     6#include "guiddef.h"
     7///----------------------------------------------------------------------------
    58
    69#ifdef __cplusplus
     
    228231 * Tray Notification
    229232 */
     233///-------------------------------------------------------------------[swt-os2]
     234/// Substituted the Wine structures, which are different in layout and size.
     235/*
    230236typedef struct _NOTIFYICONDATAA
    231237{       DWORD cbSize;
     
    237243        CHAR szTip[64];
    238244} NOTIFYICONDATAA, *PNOTIFYICONDATAA;
    239 
     245*/
     246typedef struct _NOTIFYICONDATAA
     247{       DWORD cbSize;
     248        HWND hWnd;
     249        UINT uID;
     250        UINT uFlags;
     251        UINT uCallbackMessage;
     252        HICON hIcon;
     253        CHAR szTip[128];
     254        DWORD dwState;
     255        DWORD dwStateMask;
     256        CHAR szInfo[256];
     257        union {
     258            UINT uTimeout;
     259            UINT uVersion;
     260        } DUMMYUNIONNAME;
     261        CHAR szInfoTitle[64];
     262        DWORD dwInfoFlags;
     263        GUID guidItem;
     264        HICON hBalloonIcon;
     265} NOTIFYICONDATAA, *PNOTIFYICONDATAA;
     266/*
    240267typedef struct _NOTIFYICONDATAW
    241268{       DWORD cbSize;
     
    247274        WCHAR szTip[64];
    248275} NOTIFYICONDATAW, *PNOTIFYICONDATAW;
     276*/
     277typedef struct _NOTIFYICONDATAW
     278{       DWORD cbSize;
     279        HWND hWnd;
     280        UINT uID;
     281        UINT uFlags;
     282        UINT uCallbackMessage;
     283        HICON hIcon;
     284        WCHAR szTip[128];
     285        DWORD dwState;
     286        DWORD dwStateMask;
     287        WCHAR szInfo[256];
     288        union {
     289            UINT uTimeout;
     290            UINT uVersion;
     291        } DUMMYUNIONNAME;
     292        WCHAR szInfoTitle[64];
     293        DWORD dwInfoFlags;
     294        GUID guidItem;
     295        HICON hBalloonIcon;
     296} NOTIFYICONDATAW, *PNOTIFYICONDATAW;
     297///----------------------------------------------------------------------------
    249298
    250299DECL_WINELIB_TYPE_AW(NOTIFYICONDATA)
  • branches/swt/include/win/shlobj.h

    r21585 r22081  
    159159        { HANDLE hIcon;
    160160          HANDLE hMonitor;
    161         } u;
     161        //~ } u;
     162///-------------------------------------------------------------------[swt-os2]
     163/// From Wine::include/shellapi.h
     164        } DUMMYUNIONNAME;
     165///----------------------------------------------------------------------------
    162166        HANDLE hProcess;
    163167} SHELLEXECUTEINFOA, *LPSHELLEXECUTEINFOA;
     
    181185        { HANDLE hIcon;
    182186          HANDLE hMonitor;
    183         } u;
     187        //~ } u;
     188///-------------------------------------------------------------------[swt-os2]
     189/// From Wine::include/shellapi.h
     190        } DUMMYUNIONNAME;
     191///----------------------------------------------------------------------------
    184192        HANDLE hProcess;
    185193} SHELLEXECUTEINFOW, *LPSHELLEXECUTEINFOW;
  • branches/swt/include/win/winbase.h

    r22080 r22081  
    13061306    WORD  wServicePackMajor;
    13071307    WORD  wServicePackMinor;
    1308     WORD  wReserved[2];
     1308    //~ WORD  wReserved[2];
     1309///-------------------------------------------------------------------[swt-os2]
     1310/// From Wine::include/winnt.h
     1311/// That's handy, to reserve an array of 2 WORDS, call it wReserved, then
     1312/// use some of the reserved space in a later definition and call the remaining
     1313/// byte also wReserved.
     1314        WORD wSuiteMask;
     1315        BYTE wProductType;  /// Should be named bProductType
     1316        BYTE wReserved;     /// Should be named bReserved
     1317///----------------------------------------------------------------------------
    13091318} OSVERSIONINFOEXA, *POSVERSIONINFOEXA, *LPOSVERSIONINFOEXA;
    13101319typedef struct _OSVERSIONINFOEXW {
     
    13171326    WORD  wServicePackMajor;
    13181327    WORD  wServicePackMinor;
    1319     WORD  wReserved[2];
    1320 } OSVERSIONINFOEXW, *POSVERSIONINFOEXW, *LPOSVERSIONINFOEXW;
     1328    //~ WORD  wReserved[2];
     1329//~ } OSVERSIONINFOEXW, *POSVERSIONINFOEXW, *LPOSVERSIONINFOEXW;
     1330///-------------------------------------------------------------------[swt-os2]
     1331/// From Wine::include/winnt.h
     1332/// That's handy, to reserve an array of 2 WORDS, call it wReserved, then
     1333/// use some of the reserved space in a later definition and call the remaining
     1334/// byte also wReserved.
     1335        WORD wSuiteMask;
     1336        BYTE wProductType;  /// Should be named bProductType
     1337        BYTE wReserved;     /// Should be named bReserved
     1338} OSVERSIONINFOEXW, *POSVERSIONINFOEXW, *LPOSVERSIONINFOEXW, RTL_OSVERSIONINFOEXW, *PRTL_OSVERSIONINFOEXW;
     1339///----------------------------------------------------------------------------
    13211340
    13221341DECL_WINELIB_TYPE_AW(OSVERSIONINFOEX)
  • branches/swt/include/win/wingdi.h

    r21998 r22081  
    29332933#define CCHFORMNAME   32
    29342934
     2935///-------------------------------------------------------------------[swt-os2]
     2936/// Substituted the Wine structures, which are different in layout and size.
     2937/// Changed BYTE to CHAR in Wine structure.
     2938/*
    29352939typedef struct
    29362940{
     
    29752979    DWORD  dmPanningHeight;
    29762980} DEVMODEA, *PDEVMODEA, *LPDEVMODEA;
    2977 
     2981*/
     2982typedef struct
     2983{
     2984    CHAR   dmDeviceName[CCHDEVICENAME];
     2985    WORD   dmSpecVersion;
     2986    WORD   dmDriverVersion;
     2987    WORD   dmSize;
     2988    WORD   dmDriverExtra;
     2989    DWORD  dmFields;
     2990    union {
     2991      struct {
     2992        short  dmOrientation;
     2993        short  dmPaperSize;
     2994        short  dmPaperLength;
     2995        short  dmPaperWidth;
     2996        short  dmScale;
     2997        short  dmCopies;
     2998        short  dmDefaultSource;
     2999        short  dmPrintQuality;
     3000      } DUMMYSTRUCTNAME1;
     3001      struct {
     3002        POINTL dmPosition;
     3003        DWORD dmDisplayOrientation;
     3004        DWORD dmDisplayFixedOutput;
     3005      } DUMMYSTRUCTNAME2;
     3006    } DUMMYUNIONNAME1;
     3007    short  dmColor;
     3008    short  dmDuplex;
     3009    short  dmYResolution;
     3010    short  dmTTOption;
     3011    short  dmCollate;
     3012    CHAR   dmFormName[CCHFORMNAME];
     3013    WORD   dmLogPixels;
     3014    DWORD  dmBitsPerPel;
     3015    DWORD  dmPelsWidth;
     3016    DWORD  dmPelsHeight;
     3017    union {
     3018      DWORD dmDisplayFlags;
     3019      DWORD dmNup;
     3020    } DUMMYUNIONNAME2;
     3021    DWORD  dmDisplayFrequency;
     3022    DWORD  dmICMMethod;
     3023    DWORD  dmICMIntent;
     3024    DWORD  dmMediaType;
     3025    DWORD  dmDitherType;
     3026    DWORD  dmReserved1;
     3027    DWORD  dmReserved2;
     3028    DWORD  dmPanningWidth;
     3029    DWORD  dmPanningHeight;
     3030} DEVMODEA, *PDEVMODEA, *LPDEVMODEA;
     3031/*
    29783032typedef struct
    29793033{
     
    30183072    DWORD  dmPanningHeight;
    30193073} DEVMODEW, *PDEVMODEW, *LPDEVMODEW;
     3074*/
     3075typedef struct
     3076{
     3077    WCHAR  dmDeviceName[CCHDEVICENAME];
     3078    WORD   dmSpecVersion;
     3079    WORD   dmDriverVersion;
     3080    WORD   dmSize;
     3081    WORD   dmDriverExtra;
     3082    DWORD  dmFields;
     3083    union {
     3084      struct {
     3085        short  dmOrientation;
     3086        short  dmPaperSize;
     3087        short  dmPaperLength;
     3088        short  dmPaperWidth;
     3089        short  dmScale;
     3090        short  dmCopies;
     3091        short  dmDefaultSource;
     3092        short  dmPrintQuality;
     3093      } DUMMYSTRUCTNAME1;
     3094      struct {
     3095        POINTL dmPosition;
     3096        DWORD dmDisplayOrientation;
     3097        DWORD dmDisplayFixedOutput;
     3098      } DUMMYSTRUCTNAME2;
     3099    } DUMMYUNIONNAME1;
     3100    short  dmColor;
     3101    short  dmDuplex;
     3102    short  dmYResolution;
     3103    short  dmTTOption;
     3104    short  dmCollate;
     3105    WCHAR  dmFormName[CCHFORMNAME];
     3106    WORD   dmLogPixels;
     3107    DWORD  dmBitsPerPel;
     3108    DWORD  dmPelsWidth;
     3109    DWORD  dmPelsHeight;
     3110    union {
     3111      DWORD dmDisplayFlags;
     3112      DWORD dmNup;
     3113    } DUMMYUNIONNAME2;
     3114    DWORD  dmDisplayFrequency;
     3115    DWORD  dmICMMethod;
     3116    DWORD  dmICMIntent;
     3117    DWORD  dmMediaType;
     3118    DWORD  dmDitherType;
     3119    DWORD  dmReserved1;
     3120    DWORD  dmReserved2;
     3121    DWORD  dmPanningWidth;
     3122    DWORD  dmPanningHeight;
     3123} DEVMODEW, *PDEVMODEW, *LPDEVMODEW;
     3124///----------------------------------------------------------------------------
    30203125
    30213126DECL_WINELIB_TYPE_AW(DEVMODE)
  • branches/swt/include/win/winuser.h

    r22080 r22081  
    18011801    int   xyThumbTop;
    18021802    int   xyThumbBottom;
    1803     int   bogus;
     1803    //~ int   bogus;
     1804///-------------------------------------------------------------------[swt-os2]
     1805    int   reserved;
     1806///----------------------------------------------------------------------------
    18041807    DWORD rgstate[CCHILDREN_SCROLLBAR+1];
    18051808} SCROLLBARINFO, *PSCROLLBARINFO, *LPSCROLLBARINFO;
  • 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.