Changeset 8054 for trunk/src


Ignore:
Timestamp:
Mar 8, 2002, 4:49:29 PM (23 years ago)
Author:
sandervl
Message:

PF: Menu: fix for double click on minimized window (icon)

File:
1 edited

Legend:

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

    r7683 r8054  
    1 /* $Id: menu.cpp,v 1.44 2001-12-26 11:35:39 sandervl Exp $*/
     1/* $Id: menu.cpp,v 1.45 2002-03-08 15:49:29 sandervl Exp $*/
    22/*
    33 * Menu functions
     
    28752875                        break;
    28762876                    }
     2877#ifdef __WIN32OS2__
     2878                    if(IsIconic(hwnd)) {
     2879                        //double click on minimized icon -> restore parent window
     2880                        PostMessageA(hwnd, WM_SYSCOMMAND,SC_RESTORE, msg.lParam);
     2881                        fEndMenu = TRUE;
     2882                        break;
     2883                    }
     2884#endif
    28772885                    /* fall through */
    28782886                case WM_LBUTTONDOWN:
     
    39863994    menu->bTimeToHide = FALSE;
    39873995
    3988     //TRACE("return %04x\n", hMenu );
     3996    dprintf(("CreateMenu returned %04x", hMenu ));
    39893997
    39903998    return hMenu;
     
    42684276    HRSRC hrsrc = FindResourceA( instance, name, RT_MENUA );
    42694277
    4270     dprintf(("USER32: LoadMenuA %x %x", instance, name));
     4278    dprintf(("USER32: LoadMenuA %x %x hrsrc %x", instance, name, hrsrc));
    42714279
    42724280    if (!hrsrc) return 0;
     
    42824290    HRSRC hrsrc = FindResourceW( instance, name, RT_MENUW );
    42834291
    4284     dprintf(("USER32: LoadMenuW %x %x", instance, name));
     4292    dprintf(("USER32: LoadMenuW %x %x hrsrc %x", instance, name, hrsrc));
    42854293
    42864294    if (!hrsrc) return 0;
Note: See TracChangeset for help on using the changeset viewer.