-
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
-
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.
-
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.