|
-
Dec 4th, 2000, 09:50 AM
#1
Thread Starter
Junior Member
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
-
Dec 4th, 2000, 04:54 PM
#2
Fanatic Member
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}
-
Dec 4th, 2000, 05:33 PM
#3
Thread Starter
Junior Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|