Changeset 2185 for trunk/src/user32/win32wmdiclient.cpp
- Timestamp:
- Dec 21, 1999, 6:03:46 PM (26 years ago)
- File:
-
- 1 edited
-
trunk/src/user32/win32wmdiclient.cpp (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wmdiclient.cpp
r2114 r2185 1 /* $Id: win32wmdiclient.cpp,v 1.1 6 1999-12-18 16:31:51cbratschi Exp $ */1 /* $Id: win32wmdiclient.cpp,v 1.17 1999-12-21 17:03:45 cbratschi Exp $ */ 2 2 /* 3 3 * Win32 MDI Client Window Class for OS/2 … … 573 573 { 574 574 ::SetMenu(hwndFrame, hmenuFrame); 575 #if 0 576 if ( ci->hwndChildMaximized)577 MDI_AugmentFrameMenu(ci, w->parent, ci->hwndChildMaximized);578 #endif 575 576 if (maximizedChild) 577 augmentFrameMenu(maximizedChild); 578 579 579 return oldFrameMenu; 580 580 } … … 824 824 return TRUE; 825 825 } 826 #if 0 826 827 827 /* ----------------------- Frame window ---------------------------- */ 828 828 … … 830 830 * MDI_AugmentFrameMenu 831 831 */ 832 BOOL Win32MDIClientWindow::augmentFrameMenu(HWND hChild ) 833 { 832 BOOL Win32MDIClientWindow::augmentFrameMenu(Win32MDIChildWindow *child) 833 { 834 /* 834 835 WND* child = WIN_FindWndPtr(hChild); 835 836 HMENU hSysPopup = 0; … … 843 844 WIN_ReleaseWndPtr(child); 844 845 845 / * create a copy of sysmenu popup and insert it into frame menu bar */846 // create a copy of sysmenu popup and insert it into frame menu bar 846 847 847 848 if (!(hSysPopup = LoadMenuA(GetModuleHandleA("USER32"), "SYSMENU"))) 848 849 return 0; 849 850 850 TRACE("\tgot popup %04x in sysmenu %04x\n",851 hSysPopup, child->hSysMenu);851 //TRACE("\tgot popup %04x in sysmenu %04x\n", 852 // hSysPopup, child->hSysMenu); 852 853 853 854 AppendMenuA(frame->wIDmenu,MF_HELP | MF_BITMAP, … … 856 857 SC_RESTORE, (LPSTR)(DWORD)HBMMENU_MBAR_RESTORE ); 857 858 858 / * In Win 95 look, the system menu is replaced by the child icon */859 // In Win 95 look, the system menu is replaced by the child icon 859 860 860 861 if(TWEAK_WineLook > WIN31_LOOK) … … 900 901 } 901 902 902 / * The close button is only present in Win 95 look */903 // The close button is only present in Win 95 look 903 904 if(TWEAK_WineLook > WIN31_LOOK) 904 905 { … … 912 913 SetMenuDefaultItem(hSysPopup, SC_CLOSE, FALSE); 913 914 914 / * redraw menu */915 // redraw menu 915 916 DrawMenuBar(frame->hwndSelf); 916 917 */ 917 918 return 1; 918 919 } … … 921 922 * MDI_RestoreFrameMenu 922 923 */ 923 static BOOL MDI_RestoreFrameMenu( WND *frameWnd, HWND hChild ) 924 { 924 BOOL Win32MDIClientWindow::restoreFrameMenu(Win32MDIChildWindow *child) 925 { 926 /* 925 927 MENUITEMINFOA menuInfo; 926 928 INT nItems = GetMenuItemCount(frameWnd->wIDmenu) - 1; … … 936 938 * as it is in win95, we have to delete the bitmap. 937 939 */ 940 /* 938 941 menuInfo.cbSize = sizeof(MENUITEMINFOA); 939 942 menuInfo.fMask = MIIM_DATA | MIIM_TYPE; … … 955 958 if(TWEAK_WineLook > WIN31_LOOK) 956 959 { 957 / * close */960 // close 958 961 DeleteMenu(frameWnd->wIDmenu,GetMenuItemCount(frameWnd->wIDmenu) - 1,MF_BYPOSITION); 959 962 } 960 / * restore */963 // restore 961 964 DeleteMenu(frameWnd->wIDmenu,GetMenuItemCount(frameWnd->wIDmenu) - 1,MF_BYPOSITION); 962 / * minimize */965 // minimize 963 966 DeleteMenu(frameWnd->wIDmenu,GetMenuItemCount(frameWnd->wIDmenu) - 1,MF_BYPOSITION); 964 967 965 968 DrawMenuBar(frameWnd->hwndSelf); 966 969 */ 967 970 return 1; 968 971 } 969 #endif970 972 971 973 /***********************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.
