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

merged with wine-991031, fixed edit bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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);
Note: See TracChangeset for help on using the changeset viewer.