Ignore:
Timestamp:
Dec 21, 1999, 6:03:46 PM (26 years ago)
Author:
cbratschi
Message:

WINE 991212, WM_SETREDRAW fix, MDI work

File:
1 edited

Legend:

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

    r2114 r2185  
    1 /* $Id: win32wmdiclient.cpp,v 1.16 1999-12-18 16:31:51 cbratschi Exp $ */
     1/* $Id: win32wmdiclient.cpp,v 1.17 1999-12-21 17:03:45 cbratschi Exp $ */
    22/*
    33 * Win32 MDI Client Window Class for OS/2
     
    573573    {
    574574        ::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
    579579        return oldFrameMenu;
    580580    }
     
    824824  return TRUE;
    825825}
    826 #if 0
     826
    827827/* ----------------------- Frame window ---------------------------- */
    828828
     
    830830 *                  MDI_AugmentFrameMenu
    831831 */
    832 BOOL Win32MDIClientWindow::augmentFrameMenu(HWND hChild )
    833 {
     832BOOL Win32MDIClientWindow::augmentFrameMenu(Win32MDIChildWindow *child)
     833{
     834/*
    834835    WND*    child = WIN_FindWndPtr(hChild);
    835836    HMENU   hSysPopup = 0;
     
    843844    WIN_ReleaseWndPtr(child);
    844845
    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
    846847
    847848    if (!(hSysPopup = LoadMenuA(GetModuleHandleA("USER32"), "SYSMENU")))
    848849    return 0;
    849850
    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);
    852853
    853854    AppendMenuA(frame->wIDmenu,MF_HELP | MF_BITMAP,
     
    856857                   SC_RESTORE, (LPSTR)(DWORD)HBMMENU_MBAR_RESTORE );
    857858
    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
    859860
    860861  if(TWEAK_WineLook > WIN31_LOOK)
     
    900901    }
    901902
    902     /* The close button is only present in Win 95 look */
     903    // The close button is only present in Win 95 look
    903904    if(TWEAK_WineLook > WIN31_LOOK)
    904905    {
     
    912913    SetMenuDefaultItem(hSysPopup, SC_CLOSE, FALSE);
    913914
    914     /* redraw menu */
     915    // redraw menu
    915916    DrawMenuBar(frame->hwndSelf);
    916 
     917*/
    917918    return 1;
    918919}
     
    921922 *                  MDI_RestoreFrameMenu
    922923 */
    923 static BOOL MDI_RestoreFrameMenu( WND *frameWnd, HWND hChild )
    924 {
     924BOOL Win32MDIClientWindow::restoreFrameMenu(Win32MDIChildWindow *child)
     925{
     926/*
    925927    MENUITEMINFOA menuInfo;
    926928    INT nItems = GetMenuItemCount(frameWnd->wIDmenu) - 1;
     
    936938     * as it is in win95, we have to delete the bitmap.
    937939     */
     940/*
    938941    menuInfo.cbSize = sizeof(MENUITEMINFOA);
    939942    menuInfo.fMask  = MIIM_DATA | MIIM_TYPE;
     
    955958    if(TWEAK_WineLook > WIN31_LOOK)
    956959    {
    957         /* close */
     960        // close
    958961        DeleteMenu(frameWnd->wIDmenu,GetMenuItemCount(frameWnd->wIDmenu) - 1,MF_BYPOSITION);
    959962    }
    960     /* restore */
     963    // restore
    961964    DeleteMenu(frameWnd->wIDmenu,GetMenuItemCount(frameWnd->wIDmenu) - 1,MF_BYPOSITION);
    962     /* minimize */
     965    // minimize
    963966    DeleteMenu(frameWnd->wIDmenu,GetMenuItemCount(frameWnd->wIDmenu) - 1,MF_BYPOSITION);
    964967
    965968    DrawMenuBar(frameWnd->hwndSelf);
    966 
     969*/
    967970    return 1;
    968971}
    969 #endif
    970972
    971973/***********************************************************************
Note: See TracChangeset for help on using the changeset viewer.