DGSE
Messages postés4Date d'inscriptionmercredi 5 mars 2003StatutMembreDernière intervention11 février 2004
-
15 nov. 2003 à 20:04
samoray_br
Messages postés1Date d'inscriptiondimanche 5 mars 2006StatutMembreDernière intervention25 mai 2008
-
25 mai 2008 à 00:32
Salut
J'aimerais savoir si il est possible de demarrer une fenetre principal MDI en plein écran ?
Ou de au moins faire disparaitre la barre des taches ou barre des titres.
Merci d'avance
rappel : Il n'y a pas de bordestyle dans les propriétés.
DGSE
Messages postés4Date d'inscriptionmercredi 5 mars 2003StatutMembreDernière intervention11 février 2004 16 nov. 2003 à 14:53
Merci de ta reponse, mais malhereusement, cette propriété ne fait que demarrer la fenetre agrandi et non en plein ecran, les barres de tache et titre sont toujours affichées.
samoray_br
Messages postés1Date d'inscriptiondimanche 5 mars 2006StatutMembreDernière intervention25 mai 2008 25 mai 2008 à 00:32
en utilisant des API pour form MDI en Plein Ecran voici le code :
A déclarer dans un module :
'--------------------------------------------------------------
Public Declare Function GetWindowLong Lib "user32" Alias _
"GetWindowLongA" (ByVal hWnd As Long, ByVal nIndex _
As Long) As Long
Public Declare Function SetWindowLong Lib "user32" Alias _
"SetWindowLongA" (ByVal hWnd As Long, ByVal nIndex _
As Long, ByVal dwNewLong As Long) As Long
Public Const GWL_STYLE = (-16)
Public Const WS_DLGFRAME = &H400000
Public Const WS_THICKFRAME = &H40000
'--------------------------------------------------------------
et dans l'évenement load de la MDI :
Dim MDISize
Dim MDILabar
With Me
MDILabar = GetWindowLong(.hWnd, GWL_STYLE)
MDILabar = MDILabar And Not (WS_DLGFRAME)
SetWindowLong .hWnd, GWL_STYLE, MDILabar
End With
With Me
MDISize = GetWindowLong(.hWnd, GWL_STYLE)
MDISize = MDISize And Not (WS_THICKFRAME)
SetWindowLong .hWnd, GWL_STYLE, MDISize
End With