re
si un des modèles de dudu2 fonctionne alors la fenêtre qui est l'object de ta discussion n'est pas du second niveau
EN AUCUN CAS
FINDWINDOW ne peut ATTEINDRE LE 2D NIVEAU
POUR LES DEUX AUTRES API
Fonction GetNextWindow
Declare Function GetNextWindow Lib "user32" Alias "GetWindow" ( _
ByVal hwnd As Long, _
ByVal wFlag As Long) As Long
Versions :
. Windows 95/98 :
Oui
. Windows NT :
A partir de 3.1
. Windows 2000/XP :
Oui
Description :
Cette fonction permet de connaître la fenêtre suivante ou précédente de la fenêtre active (fonctionne également pour les fenêtres fille d'une MDI). Equivalent de ce que peut donner un [ALT][TAB] (ou [CTRL][TAB] dans le cas de MDI).
hwnd est le handle de la fenêtre de départ.
wFlag est une constante du tableau ci-dessous (en gros défini le sens de la recherche).
Constante | Valeur | Définition |
GW_HWNDNEXT | 2 | Définition de la fenêtre suivante. |
GW_HWNDPREV | 3 | Définition de la fenêtre précédente. |
-------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------
FindWindowEx Function
Declare Function FindWindowEx Lib "user32.dll" Alias "FindWindowExA" (ByVal hwndParent As Long, ByVal hwndChildAfter As Long, ByVal lpszClass As String, ByVal lpszWindow As String) As Long
Platforms
- Windows 95: Supported.
- Windows 98: Supported.
- Windows NT: Requires Windows NT 4.0 or later.
- Windows 2000: Supported.
- Windows CE: Not Supported.
Description & Usage
FindWindowEx searches for a window matching a specified
window class name and/or window name. The function searches all of the child windows of a given window (if desired), beginning with the windows below a specified child window. To ignore the window's class and/or title, pass a null string for those parameters.
Return Value
If successful, the function returns a
handle to the found window. If no matching window could be found, or if an error occured, the function returns zero (use
GetLastError to get the error code.
Visual Basic-Specific Issues
To pass a null string as one of the function's parameters, use the vbNullString constant.
Parameters
hWndParentA handle to the parent window to search the child windows of. To search all windows, specify 0 for this parameter. hWndChildAfterA handle to the child window specifying a place to begin searching. Searching begins with the child window immediately after this window in the
Z-order. If this is 0, searching begins with the child window at the top of the Z-order. lpszClassThe name of the window class of the window to find. Specify a null string to ignore the class. lpszWindowThe name of the title bar text of the window to find. Specify a null string to ignore the window's title.