bonjour dobro merci pour tes conseils
aussi voila un autre exemple avec le screenshot
que tu doit connaitre aussi! lol
je doit dire que pour rafraichir les fenetres en arriere plan
cette methode est bien pratique
Code : Tout sélectionner
;#######################################################
;##### 07 2008 kernadec fenetres en vrac ###
;##### pour faire des tour de passe passe windows ###
;##### en arriere plan sans attendre d'event ###
;#######################################################
hwnd=OpenWindow(0, 50, 50, 100, 100, "", #WS_SYSMENU|#PB_Window_BorderLess|#PB_Window_Invisible)
HideWindow(0, 1)
CreateImage(0,100,100)
DC = StartDrawing(ImageOutput(0))
BitBlt_(DC,0,0,ImageWidth(0),ImageHeight(0),GetDC_(hwnd),0,0,#SRCCOPY )
StopDrawing()
CloseWindow(0)
For i=0 To 200
x=50+Random(500)
y=50+Random(500)
xx= x=20+Random(300)
yy=y=20+Random(300)
OpenWindow(0, x, y, xx, yy, "", #WS_SYSMENU|#PB_Window_BorderLess)
StickyWindow(0, 1)
StartDrawing(WindowOutput(0))
DrawingMode(4)
DrawImage(ImageID(0),0,0)
StopDrawing()
Repeat
Event =WindowEvent()
; Delay(300) ; ralentir pour voir l'economiseur d'ecran en action lol
CloseWindow(0)
event=16
Until Event = #PB_Event_CloseWindow
hwnd=OpenWindow(0, x, y, xx, yy, "", #WS_SYSMENU|#PB_Window_BorderLess|#PB_Window_Invisible)
HideWindow(0, 1)
CreateImage(0,x,y)
DC = StartDrawing(ImageOutput(0))
BitBlt_(DC,0,0,ImageWidth(0),ImageHeight(0),GetDC_(hwnd),0,0,#SRCCOPY )
StopDrawing()
CloseWindow(0)
Next i