FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Hidden MDI Child windows
Posts: 838
Joined: Fri Feb 10, 2006 12:14 PM
Hidden MDI Child windows
Posted: Wed Jan 02, 2008 11:44 AM

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

Regards

Antonio H Ferreira
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Hidden MDI Child windows
Posted: Wed Jan 02, 2008 12:13 PM
Antonio,

Do it this way:

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

Antonio Linares
www.fivetechsoft.com
Posts: 838
Joined: Fri Feb 10, 2006 12:14 PM
Hidden MDI Child windows
Posted: Wed Jan 02, 2008 12:24 PM

Antonio,

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

Antonio

Regards

Antonio H Ferreira
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Hidden MDI Child windows
Posted: Wed Jan 02, 2008 01:04 PM

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
Posts: 838
Joined: Fri Feb 10, 2006 12:14 PM
Hidden MDI Child windows
Posted: Wed Jan 02, 2008 03:24 PM

Yes it's a REDEFINE BITMAP.

Antonio

Regards

Antonio H Ferreira
Posts: 838
Joined: Fri Feb 10, 2006 12:14 PM
Hidden MDI Child windows
Posted: Wed Jan 02, 2008 04:53 PM

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

Regards

Antonio H Ferreira

Continue the discussion