I changed a application from MODAL to MDI.
The background-Image isn't shown anymore.
After changing back to MODAL, everything works ok.
Maybe < oImage1:LoadBmp( "BRAINSTORM.JPG" ) >
doesn't work with MDI ( Freeimage.dll is included ) ?
- Code: Select all Expand view
//----- From FWH-sample Testmdi4.prg ---------------//
#include "FiveWin.ch"
static oWnd
function Main()
local oBar
SET _3DLOOK ON
DEFINE WINDOW oWnd TITLE "MDIChilds from resources" MDI
DEFINE BUTTONBAR oBar _3D OF oWnd
DEFINE BUTTON OF oBar ACTION child() //( Child(), MsgInfo( oWnd:oWndClient:aWnd[ 1 ]:cCaption ) )
ACTIVATE WINDOW oWnd maximized ;
ON PAINT SHOW_PIC0( oWnd )
return nil
// -----------------------------------
FUNCTION SHOW_PIC0( oWnd )
LOCAL oImage1
LOCAL aRect := GETCLIENTRECT( oWnd:hWnd )
@ 0, 0 IMAGE oImage1 SIZE aRect[4], aRect[3] OF oWnd ADJUST
oImage1:LoadBmp( "TEST.JPG" )
RETURN( NIL )
egards
Uwe