Hidden MDI Child windows

Hidden MDI Child windows

Postby AHF » 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
AHF
 
Posts: 838
Joined: Fri Feb 10, 2006 12:14 pm

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

Postby AHF » Wed Jan 02, 2008 12:24 pm

Antonio,

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

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

Postby Antonio Linares » Wed Jan 02, 2008 1: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42107
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby AHF » Wed Jan 02, 2008 3:24 pm

Yes it's a REDEFINE BITMAP.

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

Postby AHF » Wed Jan 02, 2008 4: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
AHF
 
Posts: 838
Joined: Fri Feb 10, 2006 12:14 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 64 guests