There is a function
ABPaint( hDC := GetWindowDC( hWnd ), nLeft, nTop, oBmp:hBitmap )
sample
testab.prgDEFINE BITMAP oBmp FILENAME "..\bitmaps\AlphaBmp\Trash.bmp"
...
...
ACTIVATE WINDOW oWnd ;
ON PAINT ABPaint( hDC, 10, 10, oBmp:hBitmap, 220 ) // 0-255 transparency level
or You can use a GDIPLUS-solution
sample :
Code: Select all | Expand
// image location
c_Path := cFilePath(GetModuleFileName( GetInstance() ) )
c_Path1 := c_Path + "BITMAPS\"
...
...
// inside window define
oWnd:bPainted := < |hDC|
DRAWIMAGE( oWnd )
RETURN NIL
>
...
...
/ -----------------
FUNCTION DRAWIMAGE( oWnd )
LOCAL oGraphics := Graphics():New( oWnd:hDC )
LOCAL oImage := GDIBmp():new( c_path1 + "FWH.bmp" ) // Image
// position top, left
oGraphics:DrawImage( oImage, 493, 15, oImage:GetWidth(), oImage:GetHeight() )
oGraphics:Destroy()
oImage:End()
RETURN NIL
regards
Uwe
