Advertisement
5_2007-2008 Windows API Call/ Explanation #187336

Easy Alpha Blend One line of code

This will alpha blend your form when its unloaded cool effect thats alreayd built into windows, i couldn't find anything with the keyword alpha blend that used the AnimateWindow API, so i thought i would

AI

AI Samenvatting: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Broncode
original-source
In Your General Section Include This:<br>
Private Declare Function AnimateWindow Lib "user32" (ByVal hwnd As Long, ByVal dwTime As Long, ByVal dwFlags As Long) As Boolean
<br>
Private Const AW_HIDE = &H10000<br>
Private Const AW_BLEND = &H80000<br>
<br>
On Form_Unload put:<br>
fd = AnimateWindow(Form1.hwnd, 1000, AW_BLEND + AW_HIDE)<br>
End<br><br>
This will blend your form to whats behind it as long as its the top window. you must include End also without it, it will just hide your program.
Originele reacties (3)
Hersteld van de Wayback Machine