Hidden MDI Child windows

Post Reply
AHF
Posts: 837
Joined: Fri Feb 10, 2006 12:14 pm

Hidden MDI Child windows

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Antonio,

Do it this way:

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

Antonio Linares
www.fivetechsoft.com
AHF
Posts: 837
Joined: Fri Feb 10, 2006 12:14 pm

Post by AHF »

Antonio,

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

Antonio
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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
regards, saludos

Antonio Linares
www.fivetechsoft.com
AHF
Posts: 837
Joined: Fri Feb 10, 2006 12:14 pm

Post by AHF »

Yes it's a REDEFINE BITMAP.

Antonio
AHF
Posts: 837
Joined: Fri Feb 10, 2006 12:14 pm

Post 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
Post Reply