Ignore:
Timestamp:
Oct 30, 1999, 11:19:47 AM (26 years ago)
Author:
sandervl
Message:

EB's unicode changes + seticon + mdi fixes

File:
1 edited

Legend:

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

    r1446 r1513  
    1 /* $Id: oslibmenu.cpp,v 1.3 1999-10-25 20:17:18 sandervl Exp $ */
     1/* $Id: oslibmenu.cpp,v 1.4 1999-10-30 09:19:44 sandervl Exp $ */
    22/*
    33 * Window Menu wrapper functions for OS/2
     
    3131   if (currMenu)
    3232   {
     33      dprintf(("OSLibWinSetMenu: old menu %x, new menu %x", currMenu, hMenu));
    3334      WinSetOwner (currMenu, HWND_OBJECT);
    3435      WinSetParent(currMenu, HWND_OBJECT, FALSE);
     
    3738   if (hMenu)
    3839   {
    39       if(WinIsWindow(GetThreadHAB(), hMenu) == TRUE) {
    40          WinSetOwner (hMenu, hwndParent);
    41          WinSetParent(hMenu, hwndParent, FALSE );
    42          WinSetWindowUShort(hMenu, QWS_ID, FID_MENU);
    43      WinSendMsg(hwndParent, WM_UPDATEFRAME, (MPARAM)FCF_MENU, 0);
    44      return hMenu;
    45       }
     40        if(WinIsWindow(GetThreadHAB(), hMenu) == TRUE)
     41        {
     42                WinSetOwner (hMenu, hwndParent);
     43                WinSetParent(hMenu, hwndParent, FALSE );
     44                WinSetWindowUShort(hMenu, QWS_ID, FID_MENU);
     45                WinSendMsg(hwndParent, WM_UPDATEFRAME, (MPARAM)FCF_MENU, 0);
     46                return hMenu;
     47        }
     48        else {
     49                dprintf(("OSLibWinSetMenu: %x = invalid menu handle", hMenu));
     50        }
    4651   }
    4752   return 0;
Note: See TracChangeset for help on using the changeset viewer.