Advertisement
7_2009-2012 Windows API Call/ Explanation #232372

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

ซอร์สโค้ด
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.
ความคิดเห็นดั้งเดิม (3)
กู้คืนจาก Wayback Machine