cs_tistouille
Messages postés3Date d'inscriptionjeudi 6 avril 2006StatutMembreDernière intervention19 avril 2007
-
19 avril 2007 à 11:26
cs_tistouille
Messages postés3Date d'inscriptionjeudi 6 avril 2006StatutMembreDernière intervention19 avril 2007
-
19 avril 2007 à 14:06
Bonjour,
Je suis sur l'appli X et j'ai donc le focus dessus, un événement se produit suite à un timer dans mon appli en vb et prend du coup le focus mon appli vb prend le focus, je cherche à rendre le focus immédiatement à la fenetre de l'appli non vb précédenment active, une idée ?
drikce06
Messages postés2236Date d'inscriptionlundi 29 mai 2006StatutMembreDernière intervention29 mai 200810 19 avril 2007 à 13:45
Exemple:
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Integer
Private Declare Function SetForegroundWindow Lib "user32" (ByVal hwnd As Integer) As Integer
drikce06
Messages postés2236Date d'inscriptionlundi 29 mai 2006StatutMembreDernière intervention29 mai 200810 19 avril 2007 à 13:41
Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
· lpClassName
Points to a null-terminated string that specifies the class name or is an atom that identifies the class-name string. If this parameter is an atom, it must be a global atom created by a previous call to the GlobalAddAtom function. The atom, a 16-bit value, must be placed in the low-order word of lpClassName; the high-order word must be zero.
· lpWindowName
Points to a null-terminated string that specifies the window name (the window’s title). If this parameter is NULL, all window names match.
Drikce 06
Si la réponse vous convient: Réponse acceptée. Si la réponse vous convient pas: