Page 1 sur 1

[Résolu] OpenWindow rendre invisible dans la TaskBar

Publié : jeu. 03/nov./2011 13:42
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

Re: OpenWindow rendre invisible dans la TaskBar

Publié : jeu. 03/nov./2011 14:30
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

Re: OpenWindow rendre invisible dans la TaskBar

Publié : jeu. 03/nov./2011 14:49
par GallyHC
Bonjour MLD,

Et simplement merci :)

GallyHC