Page 2 sur 2

Publié : dim. 15/mai/2005 16:43
par Jacobus
Toujours avec la même Lib
autre possibilité avec la fonction suivante :

SetWinBackgroundImage()

Syntax

SetWinBackgroundImage( hWnd, hBitmap )


hWnd = Handle to the Window ( WindowID() )
hBitmap = Handle to a Bitmap ( LoadImage() )

Description

Set the Background-Image for the window.

How to use

;Première soluce:
hWnd = OpenWindow(0, x, y, x2, y2, #WS_POPUP, "Window Name")
hBitmap = LoadImage(1,"MyPicture.bmp")
SetWinBackgroundImage(hWnd, hBitmap)

;Deuxième soluce:
hWnd = OpenWindow(0, x, y, x2, y2, #WS_POPUP, "Window Name")
SetWinBackgroundImage(hWnd, LoadImage(1,"MyPicture.bmp"))

Publié : lun. 16/mai/2005 5:50
par olivier
Ben non, si on veut mettre une photo en fond.
Mais merci quand même pour cette réponse qui nous en apprends un peu plus.