Changeset 4585 for trunk/src


Ignore:
Timestamp:
Nov 11, 2000, 7:39:31 PM (25 years ago)
Author:
sandervl
Message:

Added wineventhook stubs + CreateWindowExW fixes

Location:
trunk/src/user32
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/USER32.DEF

    r4558 r4585  
    1 ; $Id: USER32.DEF,v 1.40 2000-11-05 18:49:06 sandervl Exp $
     1; $Id: USER32.DEF,v 1.41 2000-11-11 18:39:29 sandervl Exp $
    22
    33;Created by BLAST for IBM's compiler
     
    614614    ChangeDisplaySettingsExW   = _ChangeDisplaySettingsExW@20 @605
    615615
     616    NotifyWinEvent             = _NotifyWinEvent@16          @606
     617    UnhookWinEvent             = _UnhookWinEvent@4           @607
     618    SetWinEventHook            = _SetWinEventHook@28         @608
     619
    616620;------------
    617621; Windows 98
  • trunk/src/user32/user32.cpp

    r4573 r4585  
    1 /* $Id: user32.cpp,v 1.87 2000-11-09 18:15:18 sandervl Exp $ */
     1/* $Id: user32.cpp,v 1.88 2000-11-11 18:39:29 sandervl Exp $ */
    22
    33/*
     
    565565VOID WIN32API SetLastErrorEx(DWORD dwErrCode, DWORD dwType)
    566566{
    567   dprintf(("USER32:  SetLastErrorEx\n"));
     567  dprintf(("USER32: SetLastErrorEx %x %x", dwErrCode, dwType));
    568568  SetLastError(dwErrCode);
    569569}
     
    26592659}
    26602660
     2661
     2662DWORD WIN32API NotifyWinEvent(DWORD arg1, DWORD arg2, DWORD arg3, DWORD arg4)
     2663{
     2664  dprintf(("USER32: NotifyWinEvent %x %x %x %x - empty stub!!", arg1, arg2, arg3, arg4));
     2665
     2666  return 0;
     2667}
     2668
     2669DWORD WIN32API UnhookWinEvent(DWORD arg1)
     2670{
     2671  dprintf(("USER32: UnhookWinEvent %x - empty stub!!", arg1));
     2672
     2673  return 0;
     2674}
     2675
     2676DWORD WIN32API SetWinEventHook(DWORD arg1, DWORD arg2, DWORD arg3, DWORD arg4, DWORD arg5, DWORD arg6, DWORD arg7)
     2677{
     2678  dprintf(("USER32: SetWinEventHook %x %x %x %x %x %x %x - empty stub!!", arg1, arg2, arg3, arg4, arg5, arg6, arg7));
     2679
     2680  return 0;
     2681}
  • trunk/src/user32/win32class.cpp

    r4194 r4585  
    1 /* $Id: win32class.cpp,v 1.18 2000-09-05 19:20:35 sandervl Exp $ */
     1/* $Id: win32class.cpp,v 1.19 2000-11-11 18:39:30 sandervl Exp $ */
    22/*
    33 * Win32 Window Class Managment Code for OS/2
     
    9595       dprintf(("USER32:  wndclass->lpszClassName %s\n", classNameA));
    9696  else dprintf(("USER32:  wndclass->lpszClassName %X\n", wndclass->lpszClassName));
     97
     98  dprintf(("USER32:  wndclass->classAtom %x", classAtom));
    9799
    98100  if(HIWORD(wndclass->lpszMenuName)) {//convert string name identifier to numeric id
  • trunk/src/user32/window.cpp

    r4573 r4585  
    1 /* $Id: window.cpp,v 1.83 2000-11-09 18:15:22 sandervl Exp $ */
     1/* $Id: window.cpp,v 1.84 2000-11-11 18:39:31 sandervl Exp $ */
    22/*
    33 * Win32 window apis for OS/2
     
    5757        return CreateMDIWindowA(className, windowName, style, x, y, width, height, parent, instance, (LPARAM)data);
    5858
    59 #if 1
    6059    /* Find the class atom */
    6160    if (!(classAtom = GlobalFindAtomA(className)))
     
    7574      className = tmpClass;
    7675    }
    77 #else
    78     /* Find the class atom */
    79     if (!HIWORD(className) || !(classAtom = GlobalFindAtomA(className)))
    80     {
    81         if (!HIWORD(className))
    82         {
    83           sprintf(tmpClass,"#%d", (int) className);
    84           classAtom = GlobalFindAtomA(tmpClass);
    85           className = tmpClass;
    86         }
    87         if (!classAtom)
    88         {
    89           if (!HIWORD(className)) {
    90                   dprintf(("CreateWindowEx32A: bad class name %04x\n", LOWORD(className)));
    91           }
    92           else    dprintf(("CreateWindowEx32A: bad class name '%s'\n", className ));
    93 
    94           SetLastError(ERROR_INVALID_PARAMETER);
    95           return 0;
    96         }
    97     }
    98 #endif
    9976
    10077    /* Create the window */
     
    165142  ATOM classAtom;
    166143  CREATESTRUCTA cs;
    167   char tmpClassA[20];
    168144  WCHAR tmpClassW[20];
    169145
     
    172148
    173149    /* Find the class atom */
    174     if (!HIWORD(className) || !(classAtom = GlobalFindAtomW(className)))
    175     {
    176         if (!HIWORD(className))
    177         {
    178           sprintf(tmpClassA,"#%d", (int) className);
    179           AsciiToUnicode(tmpClassA, tmpClassW);
    180           classAtom = GlobalFindAtomW(tmpClassW);
    181           className = (LPCWSTR)tmpClassW;
    182         }
    183         if (!classAtom)
    184         {
    185           if (!HIWORD(className)) {
    186                   dprintf(("CreateWindowEx32W: bad class name %04x\n", LOWORD(className)));
    187           }
    188           else    dprintf(("CreateWindowEx32W: bad class name "));
    189 
    190           SetLastError(ERROR_INVALID_PARAMETER);
    191           return 0;
    192         }
    193     }
     150    if (!(classAtom = GlobalFindAtomW(className)))
     151    {
     152       if (!HIWORD(className))
     153           dprintf(("CreateWindowEx32W: bad class name %04x",LOWORD(className)));
     154       else
     155           dprintf(("CreateWindowEx32W: bad class name '%x'", className));
     156
     157       SetLastError(ERROR_INVALID_PARAMETER);
     158       return 0;
     159    }
     160
    194161    if(HIWORD(className)) {
    195162         dprintf(("CreateWindowExW: class %ls name %x parent %x (%d,%d) (%d,%d), %x %x", className, windowName, parent, x, y, width, height, style, exStyle));
    196163    }
    197164    else dprintf(("CreateWindowExW: class %d name %x parent %x (%d,%d) (%d,%d), %x %x", className, windowName, parent, x, y, width, height, style, exStyle));
     165
     166    if (!HIWORD(className))
     167    {
     168      wsprintfW(tmpClassW, (LPCWSTR)L"#%d", (int) className);
     169      className = tmpClassW;
     170    }
    198171
    199172    /* Create the window */
Note: See TracChangeset for help on using the changeset viewer.