Page 1 of 1

Display bmp on window

Posted: Fri Sep 14, 2007 8:32 am
by Marc Vanzegbroeck
Hi,

IN FW I used

Code: Select all

   ACTIVATE WINDOW oMenuWnd MAXIMIZED ;
   ON PAINT (PalBmpDraw( hDC, ( oMenuWnd:nbottom - oMenuWnd:ntop )-220 , ((oMenuWnd:nright)-(oMenuWnd:nleft)-(350))/2, oBmp:hBmpPal ))
to display a bmpfile in the middle at the bottom of the screen.

In FWH I get an error:

Code: Select all

   Error description: Error BASE/1004  Message not found: TBITMAP:HBMPPAL
How can I display a bmp in FWH?

Thanks,
Marc

Re: Display bmp on window

Posted: Fri Sep 14, 2007 9:23 am
by Enrico Maria Giordano
Try oBmp:hBitmap.

EMG

Posted: Fri Sep 14, 2007 9:44 am
by Marc Vanzegbroeck
Enrico,

oBmp:hBitmap works!!

Thanks,
Marc