Ignore:
Timestamp:
Dec 24, 2000, 3:54:07 PM (25 years ago)
Author:
sandervl
Message:

MDI + SetParent + activation fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/win32wmdiclient.cpp

    r4825 r4839  
    1 /* $Id: win32wmdiclient.cpp,v 1.31 2000-12-17 15:04:12 sandervl Exp $ */
     1/* $Id: win32wmdiclient.cpp,v 1.32 2000-12-24 14:54:07 sandervl Exp $ */
    22/*
    33 * Win32 MDI Client Window Class for OS/2
     
    566566        AppendMenuA( hmenuWindow, MF_SEPARATOR, 0, NULL);
    567567
     568#if 1
     569        if( nActiveChildren )
     570        {
     571            INT j = i - nActiveChildren + 1;
     572            char buffer[100];
     573            UINT id,state;
     574
     575            for( ; i >= j ; i-- )
     576            {
     577                id = GetMenuItemID(hWindowMenu,i );
     578                state = GetMenuState(hWindowMenu,i,MF_BYPOSITION);
     579
     580                GetMenuStringA(hWindowMenu, i, buffer, 100, MF_BYPOSITION);
     581
     582                DeleteMenu(hWindowMenu, i , MF_BYPOSITION);
     583                InsertMenuA(hmenuWindow, pos, MF_BYPOSITION | MF_STRING,
     584                              id, buffer);
     585                CheckMenuItem(hmenuWindow ,pos , MF_BYPOSITION | (state & MF_CHECKED));
     586            }
     587        }
     588#else
     589//doesn't work:
    568590        if( nActiveChildren )
    569591        {
     
    603625            }
    604626        }
    605 
     627#endif
    606628        /* remove separator */
    607629        DeleteMenu(hWindowMenu, i, MF_BYPOSITION);
Note: See TracChangeset for help on using the changeset viewer.