Ignore:
Timestamp:
Sep 15, 1999, 6:31:49 PM (26 years ago)
Author:
cbratschi
Message:

bugs fixed

File:
1 edited

Legend:

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

    r496 r942  
    1 /* $Id: updown.c,v 1.7 1999-08-14 16:13:16 cbratschi Exp $ */
     1/* $Id: updown.c,v 1.8 1999-09-15 16:31:49 cbratschi Exp $ */
    22/*
    33 * Updown control
     
    1818 *     - listbox as buddy window
    1919 *     - acceleration
    20  *     - base 16
     20 *     - base 16 -> bug: 9->B (should be A)
    2121 *     - UDS_ALIGNLEFT, ~UDS_WRAP
    2222 *       (tested - they work)
     
    133133
    134134  return  ( ((dwStyle & (UDS_ALIGNLEFT | UDS_ALIGNRIGHT)) != 0) &&
    135             (SendMessageA(hwnd, UDM_GETBUDDY, 0, 0) != 0) &&
    136             (lstrcmpiA(infoPtr->szBuddyClass, "EDIT") == 0 ) );
     135            (SendMessageA(hwnd, UDM_GETBUDDY, 0, 0) != 0) &&
     136            (lstrcmpiA(infoPtr->szBuddyClass, "EDIT") == 0 ) );
    137137}
    138138
     
    209209 * Returns the thousand sep. If an error occurs, it returns ','.
    210210 */
    211 static char UPDOWN_GetThousandSep()
     211static char UPDOWN_GetThousandSep(VOID)
    212212{
    213213  char sep[2];
     
    430430  RECT         budRect;  /* new coord for the buddy */
    431431  int          x,width;  /* new x position and width for the up-down */
    432        
     432
    433433  /* Is it a valid bud? */
    434434  if(!IsWindow(hwndBud))
     
    476476  GetWindowRect(infoPtr->Buddy, &budRect);
    477477  MapWindowPoints(HWND_DESKTOP, GetParent(infoPtr->Buddy),
    478                   (POINT *)(&budRect.left), 2);
     478                  (POINT *)(&budRect.left), 2);
    479479
    480480  /* now do the positioning */
     
    490490  /* first adjust the buddy to accomodate the up/down */
    491491  SetWindowPos(infoPtr->Buddy, 0, budRect.left, budRect.top,
    492                budRect.right  - budRect.left, budRect.bottom - budRect.top,
    493                SWP_NOACTIVATE|SWP_NOZORDER);
     492               budRect.right  - budRect.left, budRect.bottom - budRect.top,
     493               SWP_NOACTIVATE|SWP_NOZORDER);
    494494
    495495  /* now position the up/down */
     
    512512
    513513  SetWindowPos (hwnd, infoPtr->Buddy,
    514                 x, budRect.top-DEFAULT_ADDTOP,
    515                 width, (budRect.bottom-budRect.top)+DEFAULT_ADDTOP+DEFAULT_ADDBOT,
    516                 SWP_NOACTIVATE);
     514                x, budRect.top-DEFAULT_ADDTOP,
     515                width, (budRect.bottom-budRect.top)+DEFAULT_ADDTOP+DEFAULT_ADDBOT,
     516                SWP_NOACTIVATE);
    517517
    518518  return TRUE;
    519 }       
     519}
    520520
    521521/***********************************************************************
     
    11331133        else
    11341134        {
    1135           UPDOWN_GetBuddyInt(upDownHwnd);
     1135          UPDOWN_GetBuddyInt(upDownHwnd);
    11361136          UPDOWN_DoAction(upDownHwnd, 1, wParam==VK_UP);
    11371137        }
Note: See TracChangeset for help on using the changeset viewer.