05-01-2007, 03:20 AM
Ok I just about got it. I tried a 3rd surface to blt them too and it works fine... but of course I dont want an extra one.
The way I have it with 2 works but the thing is... some reason it shows the menu on the picscreen also so when it moves it stays solid cause its the alphablended over top of the solid one always.
THe thing I need to do is some how have it so the menu isnt on the picscreen... then it will just show the alphablended one. Anyone know how to go about this?
The way I have it with 2 works but the thing is... some reason it shows the menu on the picscreen also so when it moves it stays solid cause its the alphablended over top of the solid one always.
THe thing I need to do is some how have it so the menu isnt on the picscreen... then it will just show the alphablended one. Anyone know how to go about this?
Code:
Private Sub hsAlphaBlend_Change()
picMainMenu.Picture = picMainMenu.Picture
With BF
.BlendOp = AC_SRC_OVER
.BlendFlags = 0
.SourceConstantAlpha = 75
.AlphaFormat = 0
End With
RtlMoveMemory lBF, BF, 4
AlphaBlend picMainMenu.hdc, 0, 0, picMainMenu.ScaleWidth, picMainMenu.ScaleHeight, picScreen.hdc, picMainMenu.Left, picMainMenu.top, picMainMenu.ScaleWidth, picMainMenu.ScaleHeight, lBF
picMainMenu.Refresh
End Sub