Mise au premier plan d'une fenetre MDI Child par API et pas par Zorder
cs_azerty25
Messages postés1114Date d'inscriptionjeudi 19 décembre 2002StatutMembreDernière intervention 6 mai 2007
-
7 mai 2004 à 20:15
surfzoid
Messages postés463Date d'inscriptionvendredi 15 août 2003StatutMembreDernière intervention21 avril 2010
-
16 avril 2005 à 19:10
Lu all
LA quesrion et donc dans le titre, et je veux faire par API afin d'utiliser son handle et pas son nom dans mon code, mais aucune API n'a l'air de fonctionner ou je n'ai pas trouvé la bonne. J'ai déja fouillé le forum mais j'ai pas trouvé de réponse. Merci d'avance à ceux qui savent de me donner un chti coup de main ;)
cs_jonathan2002
Messages postés28Date d'inscriptiondimanche 22 décembre 2002StatutMembreDernière intervention15 mai 2004 15 mai 2004 à 00:44
Public Declare Sub SetWindowPos Lib "user32" (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)
Public Const HWND_TOPMOST = -1
Public Const HWND_NOTOPMOST = -2
Public Const SWP_NOSIZE = &H1
Public Const SWP_NOMOVE = &H2
Public Const SWP_NOACTIVATE = &H10
Public Const SWP_SHOWWINDOW = &H40
Select Case Tick1.checked
Case False
SetWindowPos Me.hWnd, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOACTIVATE Or SWP_SHOWWINDOW Or SWP_NOMOVE Or SWP_NOSIZE
Case True
SetWindowPos Me.hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOACTIVATE Or SWP_SHOWWINDOW Or SWP_NOMOVE Or SWP_NOSIZE
End Select