Couleur des fond d'écran et gadget des fnêtre
Publié : jeu. 11/mars/2004 18:01
Bjrs
Voila je sais pas trop comment faire et l'exemple dans codearchiv je le comprend pas bien
Je vois pas comment adapter ce code à des gadgets ..
Merci
Voila je sais pas trop comment faire et l'exemple dans codearchiv je le comprend pas bien
Code : Tout sélectionner
; German forum:
; Author:
; Date: 16. April 2003
hWnd1 = OpenWindow(0, 100, 200, 250, 260, #PB_Window_SystemMenu , "Hintergrundfarbe 1")
hWnd2 = OpenWindow(1, 400, 200, 250, 260, #PB_Window_SystemMenu , "Hintergrundfarbe 2")
hBrush1 = CreateSolidBrush_(RGB(255, 0, 255))
SetClassLong_(hWnd1, #GCL_HBRBACKGROUND, hBrush1)
hBrush2 = CreateSolidBrush_(RGB(100, 100, 100))
SetClassLong_(hWnd2, #GCL_HBRBACKGROUND, hBrush2)
InvalidateRect_(hWnd1, #NULL, #TRUE)
InvalidateRect_(hWnd2, #NULL, #TRUE)
Repeat
EventID.l = WaitWindowEvent()
If EventID = #PB_Event_CloseWindow
Quit = 1
EndIf
Until Quit = 1
DeleteObject_(hBrush1) ; Brush löschen/freigeben!
DeleteObject_(hBrush2)
End
Merci