Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GetTopWindow
Message
De
01/08/2000 00:51:59
 
 
À
Tous
Information générale
Forum:
Visual Basic
Catégorie:
Fonctions API de Windows
Titre:
GetTopWindow
Divers
Thread ID:
00399125
Message ID:
00399125
Vues:
111
Public Declare Function GetTopWindow Lib "user32" (ByVal hWnd As Long) As Long

For Click Event of form write this code:
Private Sub Form_Click()
Dim n As Long
n = GetTopWindow(0) 'or n=GetToWindow(GetDesktopWindow())
if n<>me.hwnd then
msgbox "!="
else
msgbox "="
end if
End Sub

while when i click on form n<>me.hwnd?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform