PDA

Click to See Complete Forum and Search --> : Window property!


Mine_23
Feb 23rd, 2001, 04:29 AM
Hello;
How can I make a window look modally to the whole system ?

Feb 23rd, 2001, 11:35 AM
You could use the SetWindowPos API function.






Private Declare Function SetWindowPos Lib "user32" _
Alias "SetWindowPos" (ByVal hwnd As Long, ByVal _
hWndInsertAfter As Long, ByVal x As Long, ByVal y As _
Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags _
As Long) As Long


Private Sub Form_Load()
SetWindowPos hwnd, -1, 0, 0, 0, 0, 3
End Sub

Feb 23rd, 2001, 12:02 PM
And then you can use the LockWindowUpdate API function to lock every other window so only yours can be accessed.


Private Declare Function LockWindowUpdate Lib "user32" (ByVal hwndLock As Long) As Long