Ignore:
Timestamp:
Aug 30, 1999, 2:00:12 PM (26 years ago)
Author:
sandervl
Message:

Redesign; base class for all window types

File:
1 edited

Legend:

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

    r342 r741  
    1 /* $Id: winmenu.cpp,v 1.1 1999-07-20 07:42:36 sandervl Exp $ */
     1/* $Id: winmenu.cpp,v 1.2 1999-08-30 11:59:54 sandervl Exp $ */
    22
    33/*
     
    1818#include <os2win.h>
    1919#include <stdlib.h>
    20 #include <win32wnd.h>
     20#include <win32wbase.h>
    2121
    2222//******************************************************************************
     
    5151    rc = O32_LoadMenuIndirect(arg1);
    5252    if(astring)
    53         FreeAsciiString(astring);
     53    FreeAsciiString(astring);
    5454    return(rc);
    5555}
     
    6262    dprintf(("OS2DestroyMenu\n"));
    6363    if(HIWORD(hmenu) == 0) {
    64         SetLastError(ERROR_INVALID_PARAMETER);
    65         return FALSE;
    66     }   
     64    SetLastError(ERROR_INVALID_PARAMETER);
     65    return FALSE;
     66    }
    6767    winres = (Win32Resource *)hmenu;
    6868    delete winres;
     
    8383HMENU WIN32API GetMenu( HWND hwnd)
    8484{
    85   Win32Window *window;
    86 
    87     window = Win32Window::GetWindowFromHandle(hwnd);
     85  Win32BaseWindow *window;
     86
     87    window = Win32BaseWindow::GetWindowFromHandle(hwnd);
    8888    if(!window) {
    89         dprintf(("GetMenu, window %x not found", hwnd));
    90         return 0;
     89        dprintf(("GetMenu, window %x not found", hwnd));
     90        return 0;
    9191    }
    9292    dprintf(("GetMenu %x", hwnd));
     
    9797BOOL WIN32API SetMenu( HWND hwnd, HMENU hmenu)
    9898{
    99   Win32Window *window;
    100 
    101     window = Win32Window::GetWindowFromHandle(hwnd);
     99  Win32BaseWindow *window;
     100
     101    window = Win32BaseWindow::GetWindowFromHandle(hwnd);
    102102    if(!window) {
    103         dprintf(("GetMenu, window %x not found", hwnd));
    104         return 0;
     103        dprintf(("GetMenu, window %x not found", hwnd));
     104        return 0;
    105105    }
    106106    dprintf(("SetMenu %x %x\n", hwnd, hmenu));
Note: See TracChangeset for help on using the changeset viewer.