Ignore:
Timestamp:
Sep 25, 1999, 4:18:12 PM (26 years ago)
Author:
sandervl
Message:

Cursor fixes + minor change to RedrawWindow

File:
1 edited

Legend:

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

    r1039 r1042  
    1 /* $Id: window.cpp,v 1.8 1999-09-25 09:27:08 dengert Exp $ */
     1/* $Id: window.cpp,v 1.9 1999-09-25 14:18:12 sandervl Exp $ */
    22/*
    33 * Win32 window apis for OS/2
     
    2929//******************************************************************************
    3030//******************************************************************************
     31#ifdef DEBUG
     32void PrintWindowStyle(DWORD dwStyle, DWORD dwExStyle)
     33{
     34 char style[256] = "";
     35 char exstyle[256] = "";
     36
     37  /* Window styles */
     38  if(dwStyle & WS_CHILD)
     39        strcat(style, "WS_CHILD ");
     40  if(dwStyle & WS_POPUP)
     41        strcat(style, "WS_POPUP ");
     42  if(dwStyle & WS_VISIBLE)
     43        strcat(style, "WS_VISIBLE ");
     44  if(dwStyle & WS_DISABLED)
     45        strcat(style, "WS_DISABLED ");
     46  if(dwStyle & WS_CLIPSIBLINGS)
     47        strcat(style, "WS_CLIPSIBLINGS ");
     48  if(dwStyle & WS_CLIPCHILDREN)
     49        strcat(style, "WS_CLIPCHILDREN ");
     50  if(dwStyle & WS_MAXIMIZE)
     51        strcat(style, "WS_MAXIMIZE ");
     52  if(dwStyle & WS_MINIMIZE)
     53        strcat(style, "WS_MINIMIZE ");
     54  if(dwStyle & WS_GROUP)
     55        strcat(style, "WS_GROUP ");
     56  if(dwStyle & WS_TABSTOP)
     57        strcat(style, "WS_TABSTOP ");
     58
     59  if(dwStyle & WS_CAPTION)
     60        strcat(style, "WS_CAPTION ");
     61  if(dwStyle & WS_DLGFRAME)
     62        strcat(style, "WS_DLGFRAME ");
     63  if(dwStyle & WS_BORDER)
     64        strcat(style, "WS_BORDER ");
     65
     66  if(dwStyle & WS_VSCROLL)
     67        strcat(style, "WS_VSCROLL ");
     68  if(dwStyle & WS_HSCROLL)
     69        strcat(style, "WS_HSCROLL ");
     70  if(dwStyle & WS_SYSMENU)
     71        strcat(style, "WS_SYSMENU ");
     72  if(dwStyle & WS_THICKFRAME)
     73        strcat(style, "WS_THICKFRAME ");
     74  if(dwStyle & WS_MINIMIZEBOX)
     75        strcat(style, "WS_MINIMIZEBOX ");
     76  if(dwStyle & WS_MAXIMIZEBOX)
     77        strcat(style, "WS_MAXIMIZEBOX ");
     78
     79  if(dwExStyle & WS_EX_DLGMODALFRAME)
     80        strcat(exstyle, "WS_EX_DLGMODALFRAME ");
     81  if(dwExStyle & WS_EX_ACCEPTFILES)
     82        strcat(exstyle, "WS_EX_ACCEPTFILES ");
     83  if(dwExStyle & WS_EX_NOPARENTNOTIFY)
     84        strcat(exstyle, "WS_EX_NOPARENTNOTIFY ");
     85  if(dwExStyle & WS_EX_TOPMOST)
     86        strcat(exstyle, "WS_EX_TOPMOST ");
     87  if(dwExStyle & WS_EX_TRANSPARENT)
     88        strcat(exstyle, "WS_EX_TRANSPARENT ");
     89
     90  if(dwExStyle & WS_EX_MDICHILD)
     91        strcat(exstyle, "WS_EX_MDICHILD ");
     92  if(dwExStyle & WS_EX_TOOLWINDOW)
     93        strcat(exstyle, "WS_EX_TOOLWINDOW ");
     94  if(dwExStyle & WS_EX_WINDOWEDGE)
     95        strcat(exstyle, "WS_EX_WINDOWEDGE ");
     96  if(dwExStyle & WS_EX_CLIENTEDGE)
     97        strcat(exstyle, "WS_EX_CLIENTEDGE ");
     98  if(dwExStyle & WS_EX_CONTEXTHELP)
     99        strcat(exstyle, "WS_EX_CONTEXTHELP ");
     100  if(dwExStyle & WS_EX_RIGHT)
     101        strcat(exstyle, "WS_EX_RIGHT ");
     102  if(dwExStyle & WS_EX_LEFT)
     103        strcat(exstyle, "WS_EX_LEFT ");
     104  if(dwExStyle & WS_EX_RTLREADING)
     105        strcat(exstyle, "WS_EX_RTLREADING ");
     106  if(dwExStyle & WS_EX_LTRREADING)
     107        strcat(exstyle, "WS_EX_LTRREADING ");
     108  if(dwExStyle & WS_EX_LEFTSCROLLBAR)
     109        strcat(exstyle, "WS_EX_LEFTSCROLLBAR ");
     110  if(dwExStyle & WS_EX_RIGHTSCROLLBAR)
     111        strcat(exstyle, "WS_EX_RIGHTSCROLLBAR ");
     112  if(dwExStyle & WS_EX_CONTROLPARENT)
     113        strcat(exstyle, "WS_EX_CONTROLPARENT ");
     114  if(dwExStyle & WS_EX_STATICEDGE)
     115        strcat(exstyle, "WS_EX_STATICEDGE ");
     116  if(dwExStyle & WS_EX_APPWINDOW)
     117        strcat(exstyle, "WS_EX_APPWINDOW ");
     118
     119  dprintf(("Window style:   %x %s", dwStyle, style));
     120  dprintf(("Window exStyle: %x %s", dwExStyle, exstyle));
     121}
     122#endif
     123//******************************************************************************
     124//******************************************************************************
    31125HWND WIN32API CreateWindowExA(DWORD exStyle, LPCSTR className,
    32126                              LPCSTR windowName, DWORD style, INT x,
     
    38132  ATOM classAtom;
    39133  CREATESTRUCTA cs;
     134
     135#ifdef DEBUG
     136    PrintWindowStyle(style, exStyle);
     137#endif
    40138
    41139    if(exStyle & WS_EX_MDICHILD)
     
    69167    cs.lpszClass      = className;
    70168    cs.dwExStyle      = exStyle;
    71     dprintf(("CreateWindowExA: parent %x (%d,%d) (%d,%d), %x %x", parent, x, y, width, height, style, exStyle));
     169    if(HIWORD(className)) {
     170         dprintf(("CreateWindowExA: class %s parent %x (%d,%d) (%d,%d), %x %x", className, parent, x, y, width, height, style, exStyle));
     171    }
     172    else dprintf(("CreateWindowExA: class %d parent %x (%d,%d) (%d,%d), %x %x", className, parent, x, y, width, height, style, exStyle));
    72173
    73174    //TODO: According to the docs className can be a 16 bits atom
     
    817918//******************************************************************************
    818919//******************************************************************************
    819 HWND WIN32API ChildWindowFromPoint( HWND arg1, POINT  arg2)
    820 {
    821 #ifdef DEBUG
    822     WriteLog("USER32:  ChildWindowFromPoint\n");
    823 #endif
    824     return O32_ChildWindowFromPoint(arg1, arg2);
     920HWND WIN32API ChildWindowFromPoint( HWND hwnd, POINT pt)
     921{
     922    dprintf(("USER32:  ChildWindowFromPoint\n"));
     923//    return O32_ChildWindowFromPoint(arg1, arg2);
     924    return ChildWindowFromPointEx(hwnd, pt, 0);
    825925}
    826926//******************************************************************************
     
    848948        POINT absolutePt;
    849949
    850         dprintf(("USER32: ChildWindowFromPointEx(%08xh,%08xh,%08xh).\n",
     950        dprintf(("ChildWindowFromPointEx(%08xh,%08xh,%08xh).\n",
    851951                 hwndParent, pt, uFlags));
    852952
     
    897997                }
    898998
     999                dprintf(("ChildWindowFromPointEx returned %x", hWnd));
    8991000                // found it!
    9001001                return hWnd;
     
    9031004        // the point is in the parentwindow but the parentwindow has no child
    9041005        // at this coordinate
     1006        dprintf(("ChildWindowFromPointEx returned parent %x", hwndParent));
    9051007        return hwndParent;
    9061008}
Note: See TracChangeset for help on using the changeset viewer.