Ignore:
Timestamp:
Sep 16, 1999, 5:14:59 PM (26 years ago)
Author:
phaller
Message:

Fix: WINMENU::GetSystemMenu() was broken.

File:
1 edited

Legend:

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

    r949 r961  
    1 /* $Id: winmenu.cpp,v 1.1 1999-09-15 23:19:03 sandervl Exp $ */
     1/* $Id: winmenu.cpp,v 1.2 1999-09-16 15:14:18 phaller Exp $ */
    22
    33/*
     
    1717 */
    1818#include <os2win.h>
     19#include <odin.h>
     20#include <odinwrap.h>
    1921#include <stdlib.h>
    2022#include <string.h>
     
    2325#include <winresmenu.h>
    2426
     27
     28ODINDEBUGCHANNEL(USER32)
     29
    2530//******************************************************************************
    2631//******************************************************************************
     
    231236//******************************************************************************
    232237//******************************************************************************
    233 HMENU WIN32API GetSystemMenu( HWND hMenu, BOOL  arg2)
    234 {
    235  Win32MenuRes *menu = (Win32MenuRes *)hMenu;
    236 
    237     dprintf(("USER32:  GetSystemMenu\n"));
    238     if(menu == NULL || menu->getOS2Handle() == 0)
    239     {
    240         SetLastError(ERROR_INVALID_PARAMETER);
    241         return 0;
    242     }
    243     return O32_GetSystemMenu(menu->getOS2Handle(), arg2);
     238ODINFUNCTION2(HMENU,GetSystemMenu,HWND,hSystemWindow,
     239                                  BOOL,bRevert)
     240{
     241  dprintf(("USER32: GetSystemMenu not implemented correctly."));
     242  //Win32BaseWindow *window;
     243  //
     244  //window = Win32BaseWindow::GetWindowFromHandle(hSystemWindow);
     245  //if(!window)
     246  //{
     247  //  dprintf(("GetSystemMenu, window %x not found", hSystemWindow));
     248  //  return 0;
     249  //}
     250  //
     251  //dprintf(("GetSystemMenu %x", hSystemWindow));
     252  //return window->GetSystemMenu();
     253  return O32_GetSystemMenu(hSystemWindow, bRevert);
    244254}
    245255//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.