Changeset 4839 for trunk/src/user32/win32wmdiclient.cpp
- Timestamp:
- Dec 24, 2000, 3:54:07 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wmdiclient.cpp
r4825 r4839 1 /* $Id: win32wmdiclient.cpp,v 1.3 1 2000-12-17 15:04:12sandervl Exp $ */1 /* $Id: win32wmdiclient.cpp,v 1.32 2000-12-24 14:54:07 sandervl Exp $ */ 2 2 /* 3 3 * Win32 MDI Client Window Class for OS/2 … … 566 566 AppendMenuA( hmenuWindow, MF_SEPARATOR, 0, NULL); 567 567 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: 568 590 if( nActiveChildren ) 569 591 { … … 603 625 } 604 626 } 605 627 #endif 606 628 /* remove separator */ 607 629 DeleteMenu(hWindowMenu, i, MF_BYPOSITION);
Note:
See TracChangeset
for help on using the changeset viewer.