FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour MDICHILD - Icons
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
MDICHILD - Icons
Posted: Sun Sep 06, 2009 01:50 PM

Is there any way I can have different Icons for different MDICHILD windows ?

Regards



G. N. Rao.

Hyderabad, India
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: MDICHILD - Icons
Posted: Sun Sep 06, 2009 02:31 PM
Rao

You will have to define each child with its own icon :

Code (fw): Select all Collapse
DEFINE ICON oICO RESOURCE "WALKING"

DEFINE WINDOW oWnd1 ;
       FROM 3,1 to 30,100 ;
       of oWndMdi         ;
       Menu Buildmenu();
       TITLE cTITLE       ;
       ICON oICO ;
       NoMinimize ;
       NoZoom ;
       MdiChild


Rick
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: MDICHILD - Icons
Posted: Sun Sep 06, 2009 03:41 PM
Rao,

Fixed. It was a bug that may have been introduced in FWH recently.

These are the required changes in source\classes\mdichild.prg:
Code (fw): Select all Collapse
...
   if ! ::lRegistered
      ::lRegistered = RegisterClass( "TMDICHILD",;
                                     nOR( CS_VREDRAW, CS_HREDRAW, CS_DBLCLKS ),;
                                     0, 0, 0, 0, 0, "", GetMDIChlProc() )
   endif
...
   if oIcon != nil
      ::SendMsg( WM_SETICON, 0, oIcon:hIcon )
   endif

Thanks! :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: MDICHILD - Icons
Posted: Sun Sep 06, 2009 07:26 PM

Antonio

I have noticed from time to time that the child icons would appear and dissapear as inherited from the MDI .. I just never gave it much thought so I decided to define my own ..

Thanks ..
Rick

ps .. I know this may be a MS restriction .. but is there a way to inherit the aero glass frame from a MDI to its child ??

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: MDICHILD - Icons
Posted: Sun Sep 06, 2009 09:53 PM
Rick,

I have noticed from time to time that the child icons would appear and dissapear as inherited from the MDI .. I just never gave it much thought so I decided to define my own ..

With the proposed and tested fix, it should work ok now.

ps .. I know this may be a MS restriction .. but is there a way to inherit the aero glass frame from a MDI to its child ??

No, sorry, it seems as a Windows behavior restriction.
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion