Results 1 to 3 of 3

Thread: DrawEdge and CoolBar look

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Posts
    25

    Red face

    Does anyone know a quick easy way to restore a control to the way it was before you used DrawEdge?
    i.e.
    Code:
        Dim lRetVal As Long
        lRetVal = DrawEdge(UserControl.hDC, _ 
                           MRect,BDR_RAISEDOUTER, _
                           BF_RECT Or BF_SOFT)
    That Bevels the outside edge of a UserControl

    Code:
        Dim lRetVal As Long
        lRetVal = DrawEdge(UserControl.hDC, _ 
                           MRect,BDR_SUNKENOUTER, _
                           BF_RECT Or BF_SOFT)
    That Sinks it for a click event.

    What I want to know is does anyone know of a way to make it flat agian?

    Thanks
    Code:
    If at work Then GoTo UseDifName

  2. #2
    Fanatic Member
    Join Date
    Sep 1999
    Location
    Bethel, North Carolina, USA
    Posts
    987
    You should be able to just be able to raise the paint event for whatever object you are working with but this time don't use any call to DrawEdge.
    {Insert random techno-babble here}

    {Insert quote from some long gone mofo here}

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Posts
    25

    Cool I thought .....

    I thought that would work too but it doesn't I have a way to flatten the area agian after a bevel or sink I just wantted a better way.
    Code:
    Dim lRet As Long
        lRet = StretchBlt (UserControl.hdc , _
                           0, _
                           0, _
                           UserControl.Width , _
                           UserControl.Height, _
                           BlankPic.hDC, _
                           0, _ 
                           0, _
                           BlankPic.Width, _
                           BlankPic.Height, _
                           SRCCOPY)
    That does it but I'm making a button with image an text option so every time it goes flat I have to redraw everything. I just thought there might be a way without having to draw everything agian.
    Code:
    If at work Then GoTo UseDifName

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width