Ignore:
Timestamp:
Oct 12, 1999, 4:47:24 PM (26 years ago)
Author:
sandervl
Message:

MDI fix, extra message support etc

File:
1 edited

Legend:

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

    r1243 r1256  
    1 /* $Id: uitools.cpp,v 1.12 1999-10-10 11:26:34 cbratschi Exp $ */
     1/* $Id: uitools.cpp,v 1.13 1999-10-12 14:47:22 sandervl Exp $ */
    22/*
    33 * User Interface Functions
     
    1414#include "winuser.h"
    1515#include "user32.h"
     16#include "win32wbase.h"
    1617
    1718static const WORD wPattern_AA55[8] = { 0xaaaa, 0x5555, 0xaaaa, 0x5555,
     
    17811782//******************************************************************************
    17821783//******************************************************************************
    1783 BOOL WIN32API DrawMenuBar( HWND arg1)
    1784 {
    1785 #ifdef DEBUG
    1786     WriteLog("USER32:  DrawMenuBar\n");
    1787 #endif
    1788     return O32_DrawMenuBar(arg1);
     1784BOOL WIN32API DrawMenuBar(HWND hwnd)
     1785{
     1786 Win32BaseWindow *window;
     1787
     1788    window = Win32BaseWindow::GetWindowFromHandle(hwnd);
     1789    if(!window) {
     1790        dprintf(("DrawMenuBar, window %x not found", hwnd));
     1791        SetLastError(ERROR_INVALID_WINDOW_HANDLE);
     1792        return 0;
     1793    }
     1794    dprintf(("DrawMenuBar\n"));
     1795    return O32_DrawMenuBar(window->getOS2FrameWindowHandle());
    17891796}
    17901797//******************************************************************************
     
    20322039      INT  nLen;
    20332040
    2034       nLen = O32_GetWindowText (hwnd,
     2041      nLen = O32_GetWindowText (Win32BaseWindow::Win32ToOS2FrameHandle(hwnd),
    20352042                                szText,
    20362043                                128);
Note: See TracChangeset for help on using the changeset viewer.