VB and VBA Users Source Code: Locking the application screen area
[
Home
|
Contents
|
Search
|
Reply
| Previous |
Next
]
VB/VBA Source Code
Locking the application screen area
By:
Andrew Baker
Email (spam proof):
Email the originator of this post
Date:
Thursday, July 06, 2000
Hits:
3195
Category:
Windows API
Article:
If you want to lock the application screen area use the following: Private Declare Function LockWindowUpdate Lib "user32" (ByVal hwndLock As Long) As Long Private Declare Function GetDesktopWindow Lib "user32" () As Long 'Completely Locks the Whole Application Screen Area, including dialogs and the mouse. Sub WindowUpdating(Enabled As Boolean) Dim Res As Long If Enabled Then LockWindowUpdate 0 'Unlock screen area Else Res = LockWindowUpdate(GetDesktopWindow) 'Lock at desktop level End If End Sub
Terms and Conditions
Support this site
Download a trial version of the Excel Workbook Rebuilder