Mengunci Software Update Windows dengan Perintah Windows API
Tuesday, May 31, 2011 | 11:28 AM|
API Explanation
Use the LockWindowUpdate API to help speed up your app and eliminate annoying flickering. This is an extremely easy API to use. Just one declaration, one line of code to turn it on, and one line of code to turn it off. Using this API will prevent your form from receiving any refresh messages from windows. It is best not to use this function for long processes since your form will not be repainted until you turn it off.
Parameter Information
Declare Function LockWindowUpdate Lib "user32" (ByVal hWnd As Long) As Long
Kode :
Declare Function LockWindowUpdate Lib "user32" (ByVal hWnd As Long) As Long
'To turn it on just call it like this, passing it the hWnd of the window to lock.
LockWindowUpdate Form1.hWnd
'To turn it off just call it and pass it a zero.
LockWindowUpdate 0
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment