Page 1 of 1

Hidden MDI Child windows

Posted: Wed Jan 02, 2008 11:44 am
by AHF
Hello,

Using the code below will design a bitmap image on the window:owndclient. However if we resize the window all mdichilds can't be seen anymore they are hidden by the bitmap.

How can I make it work ?

ACTIVATE WINDOW oWnd MAXIMIZED VALID ;
ON PAINT (drawbitmap( oWnd:owndclient:hdc, obmp:hbitmap, 0, 0,;
oWnd:owndclient:nWidth(), oWnd:owndclient:nHeight()));
ON DROPFILES DropArquiva(aFiles) ;
ON RESIZE GetWndFrame():arrangeicons()

Antonio

Posted: Wed Jan 02, 2008 12:13 pm
by Antonio Linares
Antonio,

Do it this way:

...
ON PAINT (drawbitmap( hDC, obmp:hbitmap, 0, 0,;
...

Posted: Wed Jan 02, 2008 12:24 pm
by AHF
Antonio,

Results the same. Doesn't work. Screen resolutuion 1400x1050

Antonio

Posted: Wed Jan 02, 2008 1:04 pm
by Antonio Linares
Antonio,

How have you created the Bitmap ? You should use DEFINE BITMAP ... and not
@ ..., ... BITMAP.

Please review fwh\samples\Alaska.prg source code

Posted: Wed Jan 02, 2008 3:24 pm
by AHF
Yes it's a REDEFINE BITMAP.

Antonio

Posted: Wed Jan 02, 2008 4:53 pm
by AHF
Problem solved. It was an old program and the window was define size 0,0 to maxrow(), maxcol() and it doesn't works anymore like that.

Thanks,

Antonio