Ignore:
Timestamp:
Sep 19, 2001, 5:39:52 PM (24 years ago)
Author:
sandervl
Message:

ported the Wine MDI control + some menu fixes

File:
1 edited

Legend:

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

    r6751 r6762  
    1 /* $Id: window.cpp,v 1.105 2001-09-19 09:10:13 sandervl Exp $ */
     1/* $Id: window.cpp,v 1.106 2001-09-19 15:39:52 sandervl Exp $ */
    22/*
    33 * Win32 window apis for OS/2
     
    243243    }
    244244    HWND hwnd = window->getWindowHandle();
    245     RELEASE_WNDOBJ(window);
    246     return hwnd;
    247 }
    248 //******************************************************************************
    249 //******************************************************************************
    250 HWND WIN32API CreateMDIWindowA(LPCSTR lpszClassName, LPCSTR lpszWindowName,
    251                                DWORD dwStyle, int x, int y, int nWidth,
    252                                int nHeight, HWND hwndParent,
    253                                HINSTANCE hInstance, LPARAM lParam )
    254 {
    255  HWND hwnd;
    256  MDICREATESTRUCTA cs;
    257  Win32BaseWindow *window;
    258 
    259     window = Win32BaseWindow::GetWindowFromHandle(hwndParent);
    260     if(!window) {
    261         dprintf(("CreateMDIWindowA, window %x not found", hwndParent));
    262         return 0;
    263     }
    264 
    265     cs.szClass        = lpszClassName;
    266     cs.szTitle        = lpszWindowName;
    267     cs.hOwner         = hInstance;
    268     cs.x              = x;
    269     cs.y              = y;
    270     cs.cx             = nHeight;
    271     cs.cy             = nWidth;
    272     cs.style          = dwStyle;
    273     cs.lParam         = lParam;
    274 
    275     if(HIWORD(lpszClassName)) {
    276          dprintf(("CreateMDIWindowA: class %s parent %x (%d,%d) (%d,%d), %x %x lParam=%x", lpszClassName, hwndParent, x, y, nWidth, nHeight, dwStyle, lParam));
    277     }
    278     else dprintf(("CreateMDIWindowA: class %d parent %x (%d,%d) (%d,%d), %x %x lParam=%x", lpszClassName, hwndParent, x, y, nWidth, nHeight, dwStyle, lParam));
    279 
    280     hwnd = window->SendMessageA(WM_MDICREATE, 0, (LPARAM)&cs);
    281     RELEASE_WNDOBJ(window);
    282     return hwnd;
    283 }
    284 //******************************************************************************
    285 //******************************************************************************
    286 HWND WIN32API CreateMDIWindowW(LPCWSTR lpszClassName, LPCWSTR lpszWindowName,
    287                                DWORD dwStyle, int x, int y, int nWidth,
    288                                int nHeight, HWND hwndParent,
    289                                HINSTANCE hInstance, LPARAM lParam )
    290 {
    291  HWND hwnd;
    292  MDICREATESTRUCTW cs;
    293  Win32BaseWindow *window;
    294 
    295     window = Win32BaseWindow::GetWindowFromHandle(hwndParent);
    296     if(!window) {
    297         dprintf(("CreateMDIWindowW, window %x not found", hwndParent));
    298         SetLastError(ERROR_INVALID_WINDOW_HANDLE);
    299         return 0;
    300     }
    301 
    302     cs.szClass        = lpszClassName;
    303     cs.szTitle        = lpszWindowName;
    304     cs.hOwner         = hInstance;
    305     cs.x              = x;
    306     cs.y              = y;
    307     cs.cx             = nHeight;
    308     cs.cy             = nWidth;
    309     cs.style          = dwStyle;
    310     cs.lParam         = lParam;
    311 
    312     if(HIWORD(lpszClassName)) {
    313          dprintf(("CreateMDIWindowW: class %ls parent %x (%d,%d) (%d,%d), %x %x lParam=%x", lpszClassName, hwndParent, x, y, nWidth, nHeight, dwStyle, lParam));
    314     }
    315     else dprintf(("CreateMDIWindowW: class %d parent %x (%d,%d) (%d,%d), %x %x lParam=%x", lpszClassName, hwndParent, x, y, nWidth, nHeight, dwStyle, lParam));
    316 
    317     hwnd = window->SendMessageW(WM_MDICREATE, 0, (LPARAM)&cs);
    318245    RELEASE_WNDOBJ(window);
    319246    return hwnd;
Note: See TracChangeset for help on using the changeset viewer.