Ignore:
Timestamp:
Sep 15, 2001, 11:26:26 AM (24 years ago)
Author:
sandervl
Message:

restored old version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/comctl32/flatsb.c

    r6705 r6709  
    3939
    4040/***********************************************************************
    41  *      InitializeFlatSB
    42  *
    43  *  returns nonzero if successful, zero otherwise
     41 *              InitializeFlatSB
     42 *
     43 *      returns nonzero if successful, zero otherwise
    4444 *
    4545 */
     
    5252
    5353/***********************************************************************
    54  *      UninitializeFlatSB
    55  *
    56  *  returns:
    57  *  E_FAIL      if one of the scroll bars is currently in use
    58  *  S_FALSE     if InitializeFlatSB was never called on this hwnd
    59  *  S_OK        otherwise
     54 *              UninitializeFlatSB
     55 *
     56 *      returns:
     57 *      E_FAIL          if one of the scroll bars is currently in use
     58 *      S_FALSE         if InitializeFlatSB was never called on this hwnd
     59 *      S_OK            otherwise
    6060 *
    6161 */
     
    6868
    6969/***********************************************************************
    70  *      FlatSB_GetScrollProp
    71  *
    72  *  Returns nonzero if successful, or zero otherwise. If index is WSB_PROP_HSTYLE,
    73  *  the return is nonzero if InitializeFlatSB has been called for this window, or
    74  *  zero otherwise.
    75  *
    76  */
    77 BOOL WINAPI
     70 *              FlatSB_GetScrollProp
     71 *
     72 *      Returns nonzero if successful, or zero otherwise. If index is WSB_PROP_HSTYLE,
     73 *      the return is nonzero if InitializeFlatSB has been called for this window, or
     74 *      zero otherwise.
     75 *
     76 */
     77BOOL WINAPI 
    7878FlatSB_GetScrollProp(HWND hwnd, INT propIndex, LPINT prop)
    7979{
     
    8484
    8585/***********************************************************************
    86  *      FlatSB_SetScrollProp
    87  */
    88 BOOL WINAPI
     86 *              FlatSB_SetScrollProp
     87 */
     88BOOL WINAPI 
    8989FlatSB_SetScrollProp(HWND hwnd, UINT index, INT newValue, BOOL flag)
    9090{
     
    9595
    9696/***********************************************************************
    97  *  From the Microsoft docs:
    98  *  "If flat scroll bars haven't been initialized for the
    99  *  window, the flat scroll bar APIs will defer to the corresponding
    100  *  standard APIs.  This allows the developer to turn flat scroll
    101  *  bars on and off without having to write conditional code."
    102  *
    103  *  So, if we just call the standard functions until we implement
    104  *  the flat scroll bar functions, flat scroll bars will show up and
    105  *  behave properly, as though they had simply not been setup to
    106  *  have flat properties.
    107  *
    108  *  Susan <sfarley@codeweavers.com>
    109  *
    110  */
    111 
    112 /***********************************************************************
    113  *      FlatSB_EnableScrollBar
    114  */
    115 BOOL WINAPI
     97 *      From the Microsoft docs:
     98 *      "If flat scroll bars haven't been initialized for the
     99 *      window, the flat scroll bar APIs will defer to the corresponding
     100 *      standard APIs.  This allows the developer to turn flat scroll
     101 *      bars on and off without having to write conditional code."
     102 *
     103 *      So, if we just call the standard functions until we implement
     104 *      the flat scroll bar functions, flat scroll bars will show up and
     105 *      behave properly, as though they had simply not been setup to
     106 *      have flat properties.
     107 *
     108 *      Susan <sfarley@codeweavers.com>
     109 *
     110 */
     111
     112/***********************************************************************
     113 *              FlatSB_EnableScrollBar
     114 */
     115BOOL WINAPI 
    116116FlatSB_EnableScrollBar(HWND hwnd, int nBar, UINT flags)
    117117{
     
    120120
    121121/***********************************************************************
    122  *      FlatSB_ShowScrollBar
    123  */
    124 BOOL WINAPI
     122 *              FlatSB_ShowScrollBar
     123 */
     124BOOL WINAPI 
    125125FlatSB_ShowScrollBar(HWND hwnd, int nBar, BOOL fShow)
    126126{
     
    129129
    130130/***********************************************************************
    131  *      FlatSB_GetScrollRange
    132  */
    133 BOOL WINAPI
     131 *              FlatSB_GetScrollRange
     132 */
     133BOOL WINAPI 
    134134FlatSB_GetScrollRange(HWND hwnd, int nBar, LPINT min, LPINT max)
    135135{
     
    138138
    139139/***********************************************************************
    140  *      FlatSB_GetScrollInfo
    141  */
    142 BOOL WINAPI
     140 *              FlatSB_GetScrollInfo
     141 */
     142BOOL WINAPI 
    143143FlatSB_GetScrollInfo(HWND hwnd, int nBar, LPSCROLLINFO info)
    144144{
     
    147147
    148148/***********************************************************************
    149  *      FlatSB_GetScrollPos
    150  */
    151 INT WINAPI
     149 *              FlatSB_GetScrollPos
     150 */
     151INT WINAPI 
    152152FlatSB_GetScrollPos(HWND hwnd, int nBar)
    153153{
     
    156156
    157157/***********************************************************************
    158  *      FlatSB_SetScrollPos
    159  */
    160 INT WINAPI
     158 *              FlatSB_SetScrollPos
     159 */
     160INT WINAPI 
    161161FlatSB_SetScrollPos(HWND hwnd, int nBar, INT pos, BOOL bRedraw)
    162162{
     
    165165
    166166/***********************************************************************
    167  *      FlatSB_SetScrollInfo
    168  */
    169 INT WINAPI
     167 *              FlatSB_SetScrollInfo
     168 */
     169INT WINAPI 
    170170FlatSB_SetScrollInfo(HWND hwnd, int nBar, LPSCROLLINFO info, BOOL bRedraw)
    171171{
     
    174174
    175175/***********************************************************************
    176  *      FlatSB_SetScrollRange
    177  */
    178 INT WINAPI
     176 *              FlatSB_SetScrollRange
     177 */
     178INT WINAPI 
    179179FlatSB_SetScrollRange(HWND hwnd, int nBar, INT min, INT max, BOOL bRedraw)
    180180{
     
    212212    switch (uMsg)
    213213    {
    214     case WM_CREATE:
    215         return FlatSB_Create (hwnd, wParam, lParam);
    216 
    217     case WM_DESTROY:
    218         return FlatSB_Destroy (hwnd, wParam, lParam);
    219 
    220     default:
    221         if (uMsg >= WM_USER)
    222         ERR("unknown msg %04x wp=%08x lp=%08lx\n",
     214        case WM_CREATE:
     215            return FlatSB_Create (hwnd, wParam, lParam);
     216
     217        case WM_DESTROY:
     218            return FlatSB_Destroy (hwnd, wParam, lParam);
     219
     220        default:
     221            if (uMsg >= WM_USER)
     222                ERR("unknown msg %04x wp=%08x lp=%08lx\n",
    223223                    uMsg, wParam, lParam);
    224224#ifdef __WIN32OS2__
    225225            return defComCtl32ProcA (hwnd, uMsg, wParam, lParam);
    226226#else
    227         return DefWindowProcA (hwnd, uMsg, wParam, lParam);
     227            return DefWindowProcA (hwnd, uMsg, wParam, lParam);
    228228#endif
    229229    }
     
    245245    wndClass.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
    246246    wndClass.lpszClassName = FLATSB_CLASSA;
    247 
     247 
    248248    RegisterClassA (&wndClass);
    249249}
Note: See TracChangeset for help on using the changeset viewer.