Ignore:
Timestamp:
Jul 14, 1999, 11:05:59 PM (26 years ago)
Author:
cbratschi
Message:

several bugs fixed, RegisterClass works, CreateWindow on the way

File:
1 edited

Legend:

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

    r300 r304  
    1 /* $Id: window.cpp,v 1.1 1999-07-14 08:35:37 sandervl Exp $ */
     1/* $Id: window.cpp,v 1.2 1999-07-14 21:05:59 cbratschi Exp $ */
    22/*
    33 * Win32 window apis for OS/2
     
    3737        dprintf(("CreateWindowEx32A: bad class name "));
    3838        if (!HIWORD(className)) {
    39                 dprintf(("CreateWindowEx32A: bad class name %04x\n", LOWORD(className)));
    40         }
    41         else    dprintf(("CreateWindowEx32A: bad class name '%s'\n", className ));
    42         SetLastError(ERROR_INVALID_PARAMETER);
     39                dprintf(("CreateWindowEx32A: bad class name %04x\n", LOWORD(className)));
     40        }
     41        else    dprintf(("CreateWindowEx32A: bad class name '%s'\n", className ));
     42        SetLastError(ERROR_INVALID_PARAMETER);
    4343        return 0;
    4444    }
     
    5858    cs.dwExStyle      = exStyle;
    5959    window = new Win32Window( &cs, classAtom, FALSE );
    60     if(window == NULL) 
     60    if(window == NULL)
    6161    {
    62         dprintf(("Win32Window creation failed!!"));
    63         return 0;
     62        dprintf(("Win32Window creation failed!!"));
     63        return 0;
    6464    }
    6565    if(GetLastError() != 0)
    6666    {
    67         delete window;
    68         return 0;
     67        dprintf(("Win32Window error found!!"));
     68        delete window;
     69        return 0;
    6970    }
    7071    return window->getWindowHandle();
Note: See TracChangeset for help on using the changeset viewer.