Hi Yochanan,
Check this example:
Displaying animated images on FoxPro form with BitBlt and StretchBlt functionshttp://www.news2news.com/vfp/?example=355&function=52It shows how to load bitmap file and display it either on FoxPro form or on FoxPro main window.
The
Canvas is quite convenient Delphi object nicely wrapping GDI Device Context functionality. Same in FoxPro is achieved through direct calls to GDI API functions:
BitBlt
GetWindowDC
DeleteDC
DeleteObject
GetObject
ReleaseDC
SelectObject
StretchBlt
...Before running the example
download spin24.bmp file from the same page. For displaying it on the main FoxPro window change
GetFocus call to
GetActiveWindow.
DECLARE INTEGER GetActiveWindow IN user32