Changeset 1724 for trunk/src


Ignore:
Timestamp:
Nov 13, 1999, 5:42:43 PM (26 years ago)
Author:
cbratschi
Message:

merged with wine-991031, fixed edit bugs

Location:
trunk/src/user32
Files:
7 edited

Legend:

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

    r1525 r1724  
    1 /* $Id: button.cpp,v 1.16 1999-10-30 18:40:43 cbratschi Exp $ */
     1/* $Id: button.cpp,v 1.17 1999-11-13 16:42:40 cbratschi Exp $ */
    22/* File: button.cpp -- Button type widgets
    33 *
     
    77 * Copyright (c) 1999 Christoph Bratschi
    88 *
    9  * WINE version: 990923
     9 * WINE version: 991031
    1010 */
    1111
     
    201201static LRESULT BUTTON_LButtonDown(HWND hwnd,WPARAM wParam,LPARAM lParam)
    202202{
     203  BUTTONINFO* infoPtr = (BUTTONINFO*)GetInfoPtr(hwnd);
     204
    203205  SetCapture(hwnd);
    204206  SetFocus(hwnd);
    205207  SendMessageA(hwnd,BM_SETSTATE,TRUE,0);
     208  infoPtr->state |= BUTTON_BTNPRESSED;
    206209
    207210  return 0;
     
    217220  pt.y = HIWORD(lParam);
    218221
     222  if (!(infoPtr->state & BUTTON_BTNPRESSED)) return 0;
     223  infoPtr->state &= BUTTON_NSTATES;
     224  if (!(infoPtr->state & BUTTON_HIGHLIGHTED))
     225  {
     226    ReleaseCapture();
     227    return 0;
     228  }
     229  SendMessageA(hwnd,BM_SETSTATE,FALSE,0);
    219230  ReleaseCapture();
    220   if (!(infoPtr->state & BUTTON_HIGHLIGHTED)) return 0;
    221   SendMessageA(hwnd,BM_SETSTATE,FALSE,0);
    222231  GetClientRect(hwnd,&rect);
    223232  if (PtInRect(&rect,pt))
     
    246255}
    247256
     257static LRESULT BUTTON_CaptureChanged(HWND hwnd,WPARAM wParam,LPARAM lParam)
     258{
     259  BUTTONINFO* infoPtr = (BUTTONINFO*)GetInfoPtr(hwnd);
     260
     261  if (infoPtr->state & BUTTON_BTNPRESSED)
     262  {
     263    infoPtr->state &= BUTTON_NSTATES;
     264    if (infoPtr->state & BUTTON_HIGHLIGHTED)
     265      SendMessageA( hwnd, BM_SETSTATE, FALSE, 0 );
     266  }
     267
     268  return 0;
     269}
     270
    248271static LRESULT BUTTON_MouseMove(HWND hwnd,WPARAM wParam,LPARAM lParam)
    249272{
     
    542565    case WM_LBUTTONUP:
    543566      return BUTTON_LButtonUp(hwnd,wParam,lParam);
     567
     568    case WM_CAPTURECHANGED:
     569      return BUTTON_CaptureChanged(hwnd,wParam,lParam);
    544570
    545571    case WM_MOUSEMOVE:
     
    10741100
    10751101    SetBkColor( hDC, GetSysColor( COLOR_BTNFACE ) );
    1076     FillRect( hDC,  &dis.rcItem, GetSysColorBrush( COLOR_BTNFACE ) );
    10771102
    10781103    dprintf(("OWNERDRAW button %x, enabled %d", hwnd, !(dwStyle & WS_DISABLED)));
  • trunk/src/user32/combo.cpp

    r1550 r1724  
    1 /* $Id: combo.cpp,v 1.11 1999-11-02 19:12:59 sandervl Exp $ */
     1/* $Id: combo.cpp,v 1.12 1999-11-13 16:42:41 cbratschi Exp $ */
    22/*
    33 * Combo controls
     
    88 * FIXME: roll up in Netscape 3.01.
    99 *
    10  * WINE version: 990923
     10 * WINE version: 991031
    1111 */
    1212
     
    374374    //SvL: Listbox size might have changed!
    375375    if(lphc->hWndLBox)
    376         GetWindowRect(lphc->hWndLBox, lprLB);
     376        GetWindowRect(lphc->hWndLBox, lprLB);
    377377
    378378    /*
     
    675675    }
    676676
    677     DrawFrameControl(hdc,&rectButton,DFC_SCROLL,buttonState);                   
     677    DrawFrameControl(hdc,&rectButton,DFC_SCROLL,buttonState);
    678678}
    679679
     
    688688  RECT        rectEdit)
    689689{
    690    INT  id, size = 0;
    691    LPSTR        pText = NULL;
     690   INT  id, size = 0;
     691   LPSTR        pText = NULL;
    692692
    693693   if( lphc->wState & CBF_NOREDRAW ) return;
     
    700700        size = SendMessageA( lphc->hWndLBox, LB_GETTEXTLEN, id, 0);
    701701        if( (pText = (char*)HeapAlloc( GetProcessHeap(), 0, size + 1)) != NULL )
    702         {
    703             SendMessageA( lphc->hWndLBox, LB_GETTEXT, (WPARAM)id, (LPARAM)pText );
    704             pText[size] = '\0'; /* just in case */
    705         } else return;
     702        {
     703            SendMessageA( lphc->hWndLBox, LB_GETTEXT, (WPARAM)id, (LPARAM)pText );
     704            pText[size] = '\0'; /* just in case */
     705        } else return;
    706706   }
    707707
    708708   if( lphc->wState & CBF_EDIT )
    709709   {
    710         if( CB_HASSTRINGS(lphc) ) SetWindowTextA( lphc->hWndEdit, pText ? pText : "" );
    711         if( lphc->wState & CBF_FOCUSED )
    712             SendMessageA( lphc->hWndEdit, EM_SETSEL, 0, (LPARAM)(-1));
     710        if( CB_HASSTRINGS(lphc) ) SetWindowTextA( lphc->hWndEdit, pText ? pText : "" );
     711        if( lphc->wState & CBF_FOCUSED )
     712            SendMessageA( lphc->hWndEdit, EM_SETSEL, 0, (LPARAM)(-1));
    713713   }
    714714   else /* paint text field ourselves */
    715715   {
    716      UINT       itemState;
    717      HFONT      hPrevFont = (lphc->hFont) ? SelectObject(hdc, lphc->hFont) : 0;
     716     UINT       itemState;
     717     HFONT      hPrevFont = (lphc->hFont) ? SelectObject(hdc, lphc->hFont) : 0;
    718718
    719719     /*
     
    723723
    724724     if ( (lphc->wState & CBF_FOCUSED) &&
    725           !(lphc->wState & CBF_DROPPED) )
     725          !(lphc->wState & CBF_DROPPED) )
    726726     {
    727727       /* highlight */
     
    742742
    743743       /*
    744         * Save the current clip region.
    745         * To retrieve the clip region, we need to create one "dummy"
    746         * clip region.
    747         */
     744        * Save the current clip region.
     745        * To retrieve the clip region, we need to create one "dummy"
     746        * clip region.
     747        */
    748748       clipRegion = CreateRectRgnIndirect(&rectEdit);
    749749
    750750       if (GetClipRgn(hdc, clipRegion)!=1)
    751751       {
    752         DeleteObject(clipRegion);
    753         clipRegion=(HRGN)NULL;
     752        DeleteObject(clipRegion);
     753        clipRegion=(HRGN)NULL;
    754754       }
    755755
    756756       if ( dwStyle & WS_DISABLED )
    757         itemState |= ODS_DISABLED;
    758 
    759        dis.CtlType      = ODT_COMBOBOX;
    760        dis.CtlID        = GetWindowLongA(lphc->hwndself,GWL_ID);
    761        dis.hwndItem     = lphc->hwndself;
    762        dis.itemAction   = ODA_DRAWENTIRE;
    763        dis.itemID       = id;
    764        dis.itemState    = itemState;
    765        dis.hDC          = hdc;
    766        dis.rcItem       = rectEdit;
    767        dis.itemData     = SendMessageA( lphc->hWndLBox, LB_GETITEMDATA,
    768                                         (WPARAM)id, 0 );
     757        itemState |= ODS_DISABLED;
     758
     759       dis.CtlType      = ODT_COMBOBOX;
     760       dis.CtlID        = GetWindowLongA(lphc->hwndself,GWL_ID);
     761       dis.hwndItem     = lphc->hwndself;
     762       dis.itemAction   = ODA_DRAWENTIRE;
     763       dis.itemID       = id;
     764       dis.itemState    = itemState;
     765       dis.hDC          = hdc;
     766       dis.rcItem       = rectEdit;
     767       dis.itemData     = SendMessageA( lphc->hWndLBox, LB_GETITEMDATA,
     768                                        (WPARAM)id, 0 );
    769769
    770770       /*
    771         * Clip the DC and have the parent draw the item.
    772         */
     771        * Clip the DC and have the parent draw the item.
     772        */
    773773       IntersectClipRect(hdc,
    774                         rectEdit.left,  rectEdit.top,
    775                         rectEdit.right, rectEdit.bottom);
     774                        rectEdit.left,  rectEdit.top,
     775                        rectEdit.right, rectEdit.bottom);
    776776
    777777       SendMessageA(lphc->owner, WM_DRAWITEM,
    778                     GetWindowLongA(lphc->hwndself,GWL_ID), (LPARAM)&dis );
     778                    GetWindowLongA(lphc->hwndself,GWL_ID), (LPARAM)&dis );
    779779
    780780       /*
    781         * Reset the clipping region.
    782         */
    783        SelectClipRgn(hdc, clipRegion);         
     781        * Reset the clipping region.
     782        */
     783       SelectClipRgn(hdc, clipRegion);
    784784     }
    785785     else
    786786     {
    787787       ExtTextOutA( hdc,
    788                     rectEdit.left + 1,
    789                     rectEdit.top + 1,
    790                     ETO_OPAQUE | ETO_CLIPPED,
    791                     &rectEdit,
    792                     pText ? pText : "" , size, NULL );
     788                    rectEdit.left + 1,
     789                    rectEdit.top + 1,
     790                    ETO_OPAQUE | ETO_CLIPPED,
     791                    &rectEdit,
     792                    pText ? pText : "" , size, NULL );
    793793
    794794       if(lphc->wState & CBF_FOCUSED && !(lphc->wState & CBF_DROPPED))
    795         DrawFocusRect( hdc, &rectEdit );
     795        DrawFocusRect( hdc, &rectEdit );
    796796     }
    797797
     
    800800   }
    801801   if (pText)
    802         HeapFree( GetProcessHeap(), 0, pText );
     802        HeapFree( GetProcessHeap(), 0, pText );
    803803}
    804804
     
    849849  {
    850850    hBkgBrush = SendMessageA( lphc->owner, WM_CTLCOLORSTATIC,
    851                               hDC, lphc->hwndself );
     851                              hDC, lphc->hwndself );
    852852
    853853    /*
     
    863863    {
    864864      hBkgBrush = SendMessageA( lphc->owner, WM_CTLCOLOREDIT,
    865                                 hDC, lphc->hwndself );
     865                                hDC, lphc->hwndself );
    866866    }
    867867    else
    868868    {
    869869      hBkgBrush = SendMessageA( lphc->owner, WM_CTLCOLORLISTBOX,
    870                                 hDC, lphc->hwndself );
     870                                hDC, lphc->hwndself );
    871871    }
    872872  }
     
    18451845        case WM_PASTE:
    18461846        case WM_COPY:
    1847                 if( lphc->wState & CBF_EDIT )
     1847                if ((message == WM_GETTEXTLENGTH) && !(lphc->wState & CBF_EDIT))
    18481848                {
    1849                     lphc->wState |= CBF_NOEDITNOTIFY;
    1850 
    1851                     return SendMessageA( lphc->hWndEdit, message, wParam, lParam );
     1849                int j = SendMessageA( lphc->hWndLBox, LB_GETCURSEL, 0, 0 );
     1850                if (j == -1) return 0;
     1851                return SendMessageA( lphc->hWndLBox, LB_GETTEXTLEN, j, 0);
    18521852                }
    1853                 return  CB_ERR;
     1853                else if( lphc->wState & CBF_EDIT )
     1854                {
     1855                    lphc->wState |= CBF_NOEDITNOTIFY;
     1856
     1857                    return SendMessageA( lphc->hWndEdit, message, wParam, lParam );
     1858                }
     1859                else return  CB_ERR;
    18541860        case WM_DRAWITEM:
    18551861        case WM_DELETEITEM:
     
    18621868                EnableWindow( lphc->hWndLBox, (BOOL)wParam );
    18631869
    1864                 /* Force the control to repaint when the enabled state changes. */
    1865                 InvalidateRect(CB_HWND(lphc), NULL, TRUE);
     1870                /* Force the control to repaint when the enabled state changes. */
     1871                InvalidateRect(CB_HWND(lphc), NULL, TRUE);
    18661872                return  TRUE;
    18671873        case WM_SETREDRAW:
  • trunk/src/user32/edit.cpp

    r1717 r1724  
    1 /* $Id: edit.cpp,v 1.13 1999-11-12 17:16:36 cbratschi Exp $ */
     1/* $Id: edit.cpp,v 1.14 1999-11-13 16:42:41 cbratschi Exp $ */
    22/*
    33 *      Edit control
     
    99 *      Copyright  1999 Christoph Bratschi
    1010 *
    11  * WINE version: 990923
     11 * WINE version: 991031
    1212 */
    1313
     
    184184static BOOL     EDIT_EM_FmtLines(HWND hwnd, EDITSTATE *es, BOOL add_eol);
    185185static HLOCAL   EDIT_EM_GetHandle(HWND hwnd, EDITSTATE *es);
    186 static HLOCAL16 EDIT_EM_GetHandle16(HWND hwnd, EDITSTATE *es);
    187186static INT      EDIT_EM_GetLine(HWND hwnd, EDITSTATE *es, INT line, LPSTR lpch);
    188187static LRESULT  EDIT_EM_GetSel(HWND hwnd, EDITSTATE *es, LPUINT start, LPUINT end);
     
    10771076        EDIT_GetLineRect(hwnd, es, 0, start, end, &line_rect);
    10781077        if (IntersectRect(&rc, &line_rect, &es->format_rect))
    1079                 InvalidateRect(hwnd, &rc, FALSE);
     1078        {
     1079          if (es->flags & EF_FOCUSED) HideCaret(hwnd);
     1080          InvalidateRect(hwnd, &rc, FALSE);
     1081          if (es->flags & EF_FOCUSED) ShowCaret(hwnd);
     1082        }
    10801083}
    10811084
     
    11171120        GetClientRect(hwnd, &rc1);
    11181121        IntersectRect(&rcWnd, &rc1, &es->format_rect);
     1122        if (es->flags & EF_FOCUSED) HideCaret(hwnd);
    11191123        if (sl == el) {
    11201124                EDIT_GetLineRect(hwnd, es, sl, sc, ec, &rcLine);
     
    11401144                        InvalidateRect(hwnd, &rcUpdate, FALSE);
    11411145        }
     1146        if (es->flags & EF_FOCUSED) ShowCaret(hwnd);
    11421147}
    11431148
     
    11811186{
    11821187        HLOCAL hNew32;
    1183         HLOCAL16 hNew16;
    11841188
    11851189        if (size <= es->buffer_size)
     
    26232627        switch (c) {
    26242628        case '\r':
    2625             /* If the edit doesn't want the return, do nothing */
    2626             if(!(es->style & ES_WANTRETURN))
    2627                 break;
     2629            /* If the edit doesn't want the return and it's not a multiline edit, do nothing */
     2630            if(!(es->style & ES_MULTILINE) && !(es->style & ES_WANTRETURN))
     2631                break;
    26282632        case '\n':
    26292633                if (es->style & ES_MULTILINE) {
  • trunk/src/user32/listbox.cpp

    r1433 r1724  
    1 /* $Id: listbox.cpp,v 1.11 1999-10-24 22:56:05 sandervl Exp $ */
     1/* $Id: listbox.cpp,v 1.12 1999-11-13 16:42:41 cbratschi Exp $ */
    22/*
    33 * Listbox controls
     
    66 * Copyright 1999 Christoph Bratschi (ported from WINE)
    77 *
    8  * WINE version: 990923
     8 * WINE version: 991031
    99 */
    1010
     
    507507        //             rect->left, rect->top, rect->right, rect->bottom );
    508508        if (!item)
    509             ExtTextOutA( hdc, rect->left + 1, rect->top + 1,
     509            ExtTextOutA( hdc, rect->left + 1, rect->top,
    510510                           ETO_OPAQUE | ETO_CLIPPED, rect, NULL, 0, NULL );
    511511        else if (!(descr->style & LBS_USETABSTOPS))
    512             ExtTextOutA( hdc, rect->left + 1, rect->top + 1,
     512            ExtTextOutA( hdc, rect->left + 1, rect->top,
    513513                           ETO_OPAQUE | ETO_CLIPPED, rect, item->str,
    514514                           strlen(item->str), NULL );
     
    516516        {
    517517            /* Output empty string to paint background in the full width. */
    518             ExtTextOutA( hdc, rect->left + 1, rect->top + 1,
     518            ExtTextOutA( hdc, rect->left + 1, rect->top,
    519519                           ETO_OPAQUE | ETO_CLIPPED, rect, NULL, 0, NULL );
    520             TabbedTextOutA( hdc, rect->left + 1 , rect->top + 1,
     520            TabbedTextOutA( hdc, rect->left + 1 , rect->top,
    521521                              item->str, strlen(item->str),
    522522                              descr->nb_tabs, descr->tabs, 0);
  • trunk/src/user32/scroll.cpp

    r1717 r1724  
    1 /* $Id: scroll.cpp,v 1.21 1999-11-12 17:16:37 cbratschi Exp $ */
     1/* $Id: scroll.cpp,v 1.22 1999-11-13 16:42:42 cbratschi Exp $ */
    22/*
    33 * Scrollbar control
     
    88 * Copyright 1994, 1996 Alexandre Julliard
    99 *
    10  * WINE version: 990923
     10 * WINE version: 991031
    1111 *
    1212 * Status:  complete
     
    14001400    if (info->fMask & (SIF_RANGE | SIF_PAGE | SIF_DISABLENOSCROLL))
    14011401    {
    1402         new_flags = infoPtr->flags;
    1403         if (infoPtr->MinVal >= infoPtr->MaxVal - MAX( infoPtr->Page-1, 0 ))
    1404         {
    1405             /* Hide or disable scroll-bar */
    1406             if (info->fMask & SIF_DISABLENOSCROLL)
    1407             {
    1408                 new_flags = ESB_DISABLE_BOTH;
    1409                 action |= SA_SSI_REFRESH;
    1410             }
    1411             else if (nBar != SB_CTL)
    1412             {
    1413                 action = SA_SSI_HIDE;
    1414                 goto done;
    1415             }
    1416         }
    1417         else  /* Show and enable scroll-bar */
    1418         {
    1419             new_flags = 0;
    1420             if (nBar != SB_CTL)
    1421                 action |= SA_SSI_SHOW;
    1422         }
    1423 
    1424         if (infoPtr->flags != new_flags) /* check arrow flags */
    1425         {
    1426             infoPtr->flags = new_flags;
    1427             action |= SA_SSI_REPAINT_ARROWS;
    1428         }
     1402      new_flags = infoPtr->flags;
     1403      if (infoPtr->MinVal >= infoPtr->MaxVal - MAX( infoPtr->Page-1, 0 ))
     1404      {
     1405        /* Hide or disable scroll-bar */
     1406        if (info->fMask & SIF_DISABLENOSCROLL)
     1407        {
     1408          new_flags = ESB_DISABLE_BOTH;
     1409          action |= SA_SSI_REFRESH;
     1410        } else if (nBar != SB_CTL)
     1411        {
     1412          action = SA_SSI_HIDE;
     1413          goto done;
     1414        }
     1415      } else  /* Show and enable scroll-bar */
     1416      {
     1417        new_flags = 0;
     1418        if (nBar != SB_CTL) action |= SA_SSI_SHOW;
     1419        if (infoPtr->flags) action |= SA_SSI_REFRESH;
     1420      }
     1421
     1422      if (infoPtr->flags != new_flags) /* check arrow flags */
     1423      {
     1424        infoPtr->flags = new_flags;
     1425        action |= SA_SSI_REPAINT_ARROWS;
     1426      }
    14291427    }
    14301428
     
    14391437          ShowScrollBar(hwnd,nBar,TRUE);
    14401438
    1441         if(bRedraw && (action & SA_SSI_REFRESH))
     1439        if (bRedraw)
     1440        {
     1441          if (action & SA_SSI_REFRESH)
    14421442            SCROLL_RefreshScrollBar(hwndScroll,nBar,TRUE,TRUE);
    1443         else
    1444         {
    1445           if (action & SA_SSI_REPAINT_INTERIOR || action & SA_SSI_MOVE_THUMB)
    1446             SCROLL_RefreshScrollBar(hwndScroll,nBar,FALSE,TRUE);
    1447           if (action & SA_SSI_REPAINT_ARROWS )
    1448             SCROLL_RefreshScrollBar(hwndScroll,nBar,TRUE,FALSE);
     1443          else
     1444          {
     1445            if (action & (SA_SSI_REPAINT_INTERIOR | SA_SSI_MOVE_THUMB))
     1446              SCROLL_RefreshScrollBar(hwndScroll,nBar,FALSE,TRUE);
     1447            if (action & SA_SSI_REPAINT_ARROWS)
     1448              SCROLL_RefreshScrollBar(hwndScroll,nBar,TRUE,FALSE);
     1449          }
    14491450        }
    14501451    }
     
    15401541    return infoPtr->CurVal;
    15411542}
     1543
     1544// CB: functions to get 32bit SB_THUMBTRACK position, for internal use
     1545
     1546BOOL IsScrollBarTracking(HWND hwnd,INT nBar)
     1547{
     1548  HWND hwndScroll = SCROLL_GetScrollHandle(hwnd,nBar);
     1549
     1550  return (SCROLL_MovingThumb && SCROLL_TrackingWin == hwnd && SCROLL_TrackingBar == nBar);
     1551}
     1552
     1553INT GetScrollTrackPos(HWND hwnd,INT nBar)
     1554{
     1555  SCROLLBAR_INFO *infoPtr;
     1556
     1557  infoPtr = SCROLL_GetInfoPtr(SCROLL_GetScrollHandle(hwnd,nBar),nBar);
     1558  if (!infoPtr) return 0;
     1559
     1560  return (SCROLL_MovingThumb && SCROLL_TrackingWin == hwnd && SCROLL_TrackingBar == nBar) ? SCROLL_TrackingVal:infoPtr->CurVal;
     1561}
     1562
    15421563/*************************************************************************
    15431564 *           SetScrollRange   (USER32.503)
  • trunk/src/user32/static.cpp

    r1525 r1724  
    1 /* $Id: static.cpp,v 1.8 1999-10-30 18:40:46 cbratschi Exp $ */
     1/* $Id: static.cpp,v 1.9 1999-11-13 16:42:42 cbratschi Exp $ */
    22/*
    33 * Static control
     
    715715    DWORD dwStyle = GetWindowLongA(hwnd,GWL_STYLE);
    716716    RECT rc;
    717     HBRUSH hbrush;
    718     HPEN hpen;
    719717
    720718    GetClientRect( hwnd, &rc );
    721     hbrush = SendMessageA( GetParent(hwnd), WM_CTLCOLORSTATIC,
    722                              hdc, hwnd );
    723     FillRect( hdc, &rc, hbrush );
    724 
    725719    switch (dwStyle & SS_TYPEMASK)
    726720    {
    727         case SS_ETCHEDHORZ:
    728             hpen = SelectObject (hdc, GetSysColorPen (COLOR_3DSHADOW));
    729             MoveToEx (hdc, rc.left, rc.bottom / 2 - 1, NULL);
    730             LineTo (hdc, rc.right - 1, rc.bottom / 2 - 1);
    731             SelectObject (hdc, GetSysColorPen (COLOR_3DHIGHLIGHT));
    732             MoveToEx (hdc, rc.left, rc.bottom / 2, NULL);
    733             LineTo (hdc, rc.right, rc.bottom / 2);
    734             LineTo (hdc, rc.right, rc.bottom / 2 - 1);
    735             SelectObject (hdc, hpen);
    736             break;
    737 
    738         case SS_ETCHEDVERT:
    739             hpen = SelectObject (hdc, GetSysColorPen (COLOR_3DSHADOW));
    740             MoveToEx (hdc, rc.right / 2 - 1, rc.top, NULL);
    741             LineTo (hdc, rc.right / 2 - 1, rc.bottom - 1);
    742             SelectObject (hdc, GetSysColorPen (COLOR_3DHIGHLIGHT));
    743             MoveToEx (hdc, rc.right / 2, rc.top, NULL);
    744             LineTo (hdc, rc.right / 2, rc.bottom);
    745             LineTo (hdc, rc.right / 2 -1 , rc.bottom);
    746             SelectObject (hdc, hpen);
    747             break;
    748 
     721        case SS_ETCHEDHORZ:
     722            DrawEdge(hdc,&rc,EDGE_ETCHED,BF_TOP|BF_BOTTOM);
     723            break;
     724        case SS_ETCHEDVERT:
     725            DrawEdge(hdc,&rc,EDGE_ETCHED,BF_LEFT|BF_RIGHT);
     726            break;
    749727        case SS_ETCHEDFRAME:
    750728            DrawEdge (hdc, &rc, EDGE_ETCHED, BF_RECT);
  • trunk/src/user32/win32wbase.cpp

    r1704 r1724  
    1 /* $Id: win32wbase.cpp,v 1.81 1999-11-11 13:17:31 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.82 1999-11-13 16:42:43 cbratschi Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    13251325        horzScrollInfo->MaxVal = 100;
    13261326        horzScrollInfo->flags  = ESB_ENABLE_BOTH;
    1327         dwStyle |= WS_HSCROLL;
    13281327      }
    13291328
     
    13341333        vertScrollInfo->MaxVal = 100;
    13351334        vertScrollInfo->flags  = ESB_ENABLE_BOTH;
    1336         dwStyle |= WS_VSCROLL;
    13371335      }
    13381336
Note: See TracChangeset for help on using the changeset viewer.