[Résolu] OpenWindow rendre invisible dans la TaskBar

Vous débutez et vous avez besoin d'aide ? N'hésitez pas à poser vos questions
Avatar de l’utilisateur
GallyHC
Messages : 1708
Inscription : lun. 17/déc./2007 12:44

[Résolu] OpenWindow rendre invisible dans la TaskBar

Message par GallyHC »

Bonjour tous,

J'ai un problème sur peu être une chose simple, mais je n'arrive a rien apres pas mal de recherche. J'ouvre une fenetre dans bordure et je voudrais qu'elle n'apparaisse pas dans la barre des tâches. Pour cela je fait :

Code : Tout sélectionner

  hWnd = OpenWindow(#PB_Any, xfinal, yfinal - dmore, #Win_toastX, #Win_toastY, "", #PB_Window_BorderLess)
  If hWnd <> 0
  EndIf
En fait c'est pour faire une fenetre info-toast, mais a chaque fois cela apparait dans la barre des taches.

J'espere que quelqu'un aura une idee, Cordialement,
GallyHC
Dernière modification par GallyHC le jeu. 03/nov./2011 14:50, modifié 2 fois.
Configuration : Tower: Windows 10 (Processeur: i7 "x64") (Mémoire: 16Go) (GeForce GTX 760 - 2Go) - PureBasic 5.72 (x86 et x64)
Avatar de l’utilisateur
MLD
Messages : 1124
Inscription : jeu. 05/févr./2009 17:58
Localisation : Bretagne

Re: OpenWindow rendre invisible dans la TaskBar

Message par MLD »

Salut GallyHC

Regarde comme ceci :wink:

Code : Tout sélectionner

OpenWindow(0, 0, 0, 600, 340,  "",#PB_Window_BorderLess | #PB_Window_ScreenCentered| #PB_Window_Invisible) 
SetWindowLong_(WindowID(0), #GWL_EXSTYLE, GetWindowLong_(WindowID(0), #GWL_EXSTYLE) | #WS_EX_TOOLWINDOW)
HideWindow(0, 0)

Repeat
   
 Event = WaitWindowEvent()
 
Until Event = #PB_Event_CloseWindow
A+
Michel
Avatar de l’utilisateur
GallyHC
Messages : 1708
Inscription : lun. 17/déc./2007 12:44

Re: OpenWindow rendre invisible dans la TaskBar

Message par GallyHC »

Bonjour MLD,

Et simplement merci :)

GallyHC
Configuration : Tower: Windows 10 (Processeur: i7 "x64") (Mémoire: 16Go) (GeForce GTX 760 - 2Go) - PureBasic 5.72 (x86 et x64)
Répondre