Ignore:
Timestamp:
Sep 25, 1999, 9:07:34 PM (26 years ago)
Author:
sandervl
Message:

Compilation fixes

File:
1 edited

Legend:

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

    r950 r1054  
    1 /* $Id: user32.cpp,v 1.3 1999-09-15 23:20:40 sandervl Exp $ */
     1/* $Id: user32.cpp,v 1.4 1999-09-25 19:07:33 sandervl Exp $ */
    22
    33/*
     
    7272
    7373
     74//******************************************************************************
     75//******************************************************************************
     76#ifdef DEBUG
     77void PrintWindowStyle(DWORD dwStyle, DWORD dwExStyle)
     78{
     79 char style[256] = "";
     80 char exstyle[256] = "";
     81
     82  /* Window styles */
     83  if(dwStyle & WS_CHILD)
     84        strcat(style, "WS_CHILD ");
     85  if(dwStyle & WS_POPUP)
     86        strcat(style, "WS_POPUP ");
     87  if(dwStyle & WS_VISIBLE)
     88        strcat(style, "WS_VISIBLE ");
     89  if(dwStyle & WS_DISABLED)
     90        strcat(style, "WS_DISABLED ");
     91  if(dwStyle & WS_CLIPSIBLINGS)
     92        strcat(style, "WS_CLIPSIBLINGS ");
     93  if(dwStyle & WS_CLIPCHILDREN)
     94        strcat(style, "WS_CLIPCHILDREN ");
     95  if(dwStyle & WS_MAXIMIZE)
     96        strcat(style, "WS_MAXIMIZE ");
     97  if(dwStyle & WS_MINIMIZE)
     98        strcat(style, "WS_MINIMIZE ");
     99  if(dwStyle & WS_GROUP)
     100        strcat(style, "WS_GROUP ");
     101  if(dwStyle & WS_TABSTOP)
     102        strcat(style, "WS_TABSTOP ");
     103
     104  if(dwStyle & WS_CAPTION)
     105        strcat(style, "WS_CAPTION ");
     106  if(dwStyle & WS_DLGFRAME)
     107        strcat(style, "WS_DLGFRAME ");
     108  if(dwStyle & WS_BORDER)
     109        strcat(style, "WS_BORDER ");
     110
     111  if(dwStyle & WS_VSCROLL)
     112        strcat(style, "WS_VSCROLL ");
     113  if(dwStyle & WS_HSCROLL)
     114        strcat(style, "WS_HSCROLL ");
     115  if(dwStyle & WS_SYSMENU)
     116        strcat(style, "WS_SYSMENU ");
     117  if(dwStyle & WS_THICKFRAME)
     118        strcat(style, "WS_THICKFRAME ");
     119  if(dwStyle & WS_MINIMIZEBOX)
     120        strcat(style, "WS_MINIMIZEBOX ");
     121  if(dwStyle & WS_MAXIMIZEBOX)
     122        strcat(style, "WS_MAXIMIZEBOX ");
     123
     124  if(dwExStyle & WS_EX_DLGMODALFRAME)
     125        strcat(exstyle, "WS_EX_DLGMODALFRAME ");
     126  if(dwExStyle & WS_EX_ACCEPTFILES)
     127        strcat(exstyle, "WS_EX_ACCEPTFILES ");
     128  if(dwExStyle & WS_EX_NOPARENTNOTIFY)
     129        strcat(exstyle, "WS_EX_NOPARENTNOTIFY ");
     130  if(dwExStyle & WS_EX_TOPMOST)
     131        strcat(exstyle, "WS_EX_TOPMOST ");
     132  if(dwExStyle & WS_EX_TRANSPARENT)
     133        strcat(exstyle, "WS_EX_TRANSPARENT ");
     134
     135  if(dwExStyle & WS_EX_MDICHILD)
     136        strcat(exstyle, "WS_EX_MDICHILD ");
     137  if(dwExStyle & WS_EX_TOOLWINDOW)
     138        strcat(exstyle, "WS_EX_TOOLWINDOW ");
     139  if(dwExStyle & WS_EX_WINDOWEDGE)
     140        strcat(exstyle, "WS_EX_WINDOWEDGE ");
     141  if(dwExStyle & WS_EX_CLIENTEDGE)
     142        strcat(exstyle, "WS_EX_CLIENTEDGE ");
     143  if(dwExStyle & WS_EX_CONTEXTHELP)
     144        strcat(exstyle, "WS_EX_CONTEXTHELP ");
     145  if(dwExStyle & WS_EX_RIGHT)
     146        strcat(exstyle, "WS_EX_RIGHT ");
     147  if(dwExStyle & WS_EX_LEFT)
     148        strcat(exstyle, "WS_EX_LEFT ");
     149  if(dwExStyle & WS_EX_RTLREADING)
     150        strcat(exstyle, "WS_EX_RTLREADING ");
     151  if(dwExStyle & WS_EX_LTRREADING)
     152        strcat(exstyle, "WS_EX_LTRREADING ");
     153  if(dwExStyle & WS_EX_LEFTSCROLLBAR)
     154        strcat(exstyle, "WS_EX_LEFTSCROLLBAR ");
     155  if(dwExStyle & WS_EX_RIGHTSCROLLBAR)
     156        strcat(exstyle, "WS_EX_RIGHTSCROLLBAR ");
     157  if(dwExStyle & WS_EX_CONTROLPARENT)
     158        strcat(exstyle, "WS_EX_CONTROLPARENT ");
     159  if(dwExStyle & WS_EX_STATICEDGE)
     160        strcat(exstyle, "WS_EX_STATICEDGE ");
     161  if(dwExStyle & WS_EX_APPWINDOW)
     162        strcat(exstyle, "WS_EX_APPWINDOW ");
     163
     164  dprintf(("Window style:   %x %s", dwStyle, style));
     165  dprintf(("Window exStyle: %x %s", dwExStyle, exstyle));
     166}
     167#endif
     168
    74169
    75170//******************************************************************************
     
    551646 HWND hwnd;
    552647 Win32WindowProc *window = NULL;
     648
     649#ifdef DEBUG
     650    PrintWindowStyle(dwStyle, dwExStyle);
     651#endif
    553652
    554653  /* @@@PH 98/06/12 CreateWindow crashes somewhere in Open32 */
     
    10901189//******************************************************************************
    10911190//******************************************************************************
    1092 HCURSOR WIN32API SetCursor( HCURSOR arg1)
    1093 {
    1094 #ifdef DEBUG
    1095     WriteLog("USER32:  SetCursor\n");
    1096 #endif
    1097     return O32_SetCursor(arg1);
     1191HCURSOR WIN32API SetCursor( HCURSOR hcur)
     1192{
     1193 HCURSOR rc;
     1194
     1195    rc = O32_SetCursor(hcur);
     1196    dprintf(("USER32: SetCursor %x (prev %x (%x))\n", hcur, rc, O32_GetCursor()));
     1197    return rc;
    10981198}
    10991199//******************************************************************************
     
    12611361HWND WIN32API ChildWindowFromPoint( HWND arg1, POINT  arg2)
    12621362{
    1263 #ifdef DEBUG
    1264     WriteLog("USER32:  ChildWindowFromPoint\n");
    1265 #endif
    1266     return O32_ChildWindowFromPoint(arg1, arg2);
     1363 HWND rc;
     1364
     1365    rc = O32_ChildWindowFromPoint(arg1, arg2);
     1366#ifdef DEBUG
     1367    WriteLog("USER32:  ChildWindowFromPoint %x returned %x\n", arg1, rc);
     1368#endif
     1369    return rc;
    12671370}
    12681371/*****************************************************************************
Note: See TracChangeset for help on using the changeset viewer.