Ignore:
Timestamp:
Oct 11, 1999, 10:54:26 PM (26 years ago)
Author:
sandervl
Message:

Lots of changes

File:
1 edited

Legend:

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

    r1248 r1253  
    1 /* $Id: win32wbase.cpp,v 1.35 1999-10-11 16:04:51 cbratschi Exp $ */
     1/* $Id: win32wbase.cpp,v 1.36 1999-10-11 20:54:25 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    5858    !(style & (WS_CHILD | WS_POPUP))
    5959
     60void PrintWindowStyle(DWORD dwStyle, DWORD dwExStyle);
     61
    6062//******************************************************************************
    6163//******************************************************************************
     
    134136  hwndHorzScroll     = 0;
    135137  hwndVertScroll     = 0;
     138
     139  ownDC              = 0;
    136140}
    137141//******************************************************************************
     
    185189 INT   sw = SW_SHOW;
    186190 POINT maxSize, maxPos, minTrack, maxTrack;
     191
     192#ifdef DEBUG
     193    PrintWindowStyle(cs->style, cs->dwExStyle);
     194#endif
    187195
    188196    SetLastError(0);
     
    14571465    if( ctlType == CTLCOLOR_SCROLLBAR)
    14581466    {
    1459             HBRUSH hb = GetSysColorBrush(COLOR_SCROLLBAR);
     1467        HBRUSH hb = GetSysColorBrush(COLOR_SCROLLBAR);
    14601468        COLORREF bk = GetSysColor(COLOR_3DHILIGHT);
    14611469        SetTextColor( hdc, GetSysColor(COLOR_3DFACE));
     
    14781486    SetTextColor( hdc, GetSysColor(COLOR_WINDOWTEXT));
    14791487
    1480         if ((ctlType == CTLCOLOR_EDIT) || (ctlType == CTLCOLOR_LISTBOX))
    1481         {
    1482             SetBkColor( hdc, GetSysColor(COLOR_WINDOW) );
    1483         }
    1484         else
    1485         {
    1486             SetBkColor( hdc, GetSysColor(COLOR_3DFACE) );
    1487             return (LRESULT)GetSysColorBrush(COLOR_3DFACE);
    1488         }
     1488    if ((ctlType == CTLCOLOR_EDIT) || (ctlType == CTLCOLOR_LISTBOX))
     1489    {
     1490        SetBkColor( hdc, GetSysColor(COLOR_WINDOW) );
     1491    }
     1492    else
     1493    {
     1494        SetBkColor( hdc, GetSysColor(COLOR_3DFACE) );
     1495        return (LRESULT)GetSysColorBrush(COLOR_3DFACE);
     1496    }
    14891497    return (LRESULT)GetSysColorBrush(COLOR_WINDOW);
    14901498}
     
    15321540
    15331541    case WM_CTLCOLOR:
    1534             return DefWndControlColor(HIWORD(lParam), (HDC)wParam);
     1542        return DefWndControlColor(HIWORD(lParam), (HDC)wParam);
    15351543
    15361544    case WM_VKEYTOITEM:
     
    20442052   wpos.hwnd             = getWindowHandle();
    20452053
    2046    if(~fuFlags & (SWP_NOMOVE | SWP_NOSIZE)) {
     2054   if(~fuFlags & (SWP_NOMOVE | SWP_NOSIZE))
     2055   {
    20472056       if (isChild())
    20482057       {
     
    20882097   if (rc == FALSE)
    20892098   {
     2099        dprintf(("OSLibWinSetMultWindowPos failed!"));
    20902100   }
    20912101   else
     
    26362646//******************************************************************************
    26372647//******************************************************************************
     2648#ifdef DEBUG
     2649void PrintWindowStyle(DWORD dwStyle, DWORD dwExStyle)
     2650{
     2651 char style[256] = "";
     2652 char exstyle[256] = "";
     2653
     2654  /* Window styles */
     2655  if(dwStyle & WS_CHILD)
     2656        strcat(style, "WS_CHILD ");
     2657  if(dwStyle & WS_POPUP)
     2658        strcat(style, "WS_POPUP ");
     2659  if(dwStyle & WS_VISIBLE)
     2660        strcat(style, "WS_VISIBLE ");
     2661  if(dwStyle & WS_DISABLED)
     2662        strcat(style, "WS_DISABLED ");
     2663  if(dwStyle & WS_CLIPSIBLINGS)
     2664        strcat(style, "WS_CLIPSIBLINGS ");
     2665  if(dwStyle & WS_CLIPCHILDREN)
     2666        strcat(style, "WS_CLIPCHILDREN ");
     2667  if(dwStyle & WS_MAXIMIZE)
     2668        strcat(style, "WS_MAXIMIZE ");
     2669  if(dwStyle & WS_MINIMIZE)
     2670        strcat(style, "WS_MINIMIZE ");
     2671  if(dwStyle & WS_GROUP)
     2672        strcat(style, "WS_GROUP ");
     2673  if(dwStyle & WS_TABSTOP)
     2674        strcat(style, "WS_TABSTOP ");
     2675
     2676  if((dwStyle & WS_CAPTION) == WS_CAPTION)
     2677        strcat(style, "WS_CAPTION ");
     2678  if(dwStyle & WS_DLGFRAME)
     2679        strcat(style, "WS_DLGFRAME ");
     2680  if(dwStyle & WS_BORDER)
     2681        strcat(style, "WS_BORDER ");
     2682
     2683  if(dwStyle & WS_VSCROLL)
     2684        strcat(style, "WS_VSCROLL ");
     2685  if(dwStyle & WS_HSCROLL)
     2686        strcat(style, "WS_HSCROLL ");
     2687  if(dwStyle & WS_SYSMENU)
     2688        strcat(style, "WS_SYSMENU ");
     2689  if(dwStyle & WS_THICKFRAME)
     2690        strcat(style, "WS_THICKFRAME ");
     2691  if(dwStyle & WS_MINIMIZEBOX)
     2692        strcat(style, "WS_MINIMIZEBOX ");
     2693  if(dwStyle & WS_MAXIMIZEBOX)
     2694        strcat(style, "WS_MAXIMIZEBOX ");
     2695
     2696  if(dwExStyle & WS_EX_DLGMODALFRAME)
     2697        strcat(exstyle, "WS_EX_DLGMODALFRAME ");
     2698  if(dwExStyle & WS_EX_ACCEPTFILES)
     2699        strcat(exstyle, "WS_EX_ACCEPTFILES ");
     2700  if(dwExStyle & WS_EX_NOPARENTNOTIFY)
     2701        strcat(exstyle, "WS_EX_NOPARENTNOTIFY ");
     2702  if(dwExStyle & WS_EX_TOPMOST)
     2703        strcat(exstyle, "WS_EX_TOPMOST ");
     2704  if(dwExStyle & WS_EX_TRANSPARENT)
     2705        strcat(exstyle, "WS_EX_TRANSPARENT ");
     2706
     2707  if(dwExStyle & WS_EX_MDICHILD)
     2708        strcat(exstyle, "WS_EX_MDICHILD ");
     2709  if(dwExStyle & WS_EX_TOOLWINDOW)
     2710        strcat(exstyle, "WS_EX_TOOLWINDOW ");
     2711  if(dwExStyle & WS_EX_WINDOWEDGE)
     2712        strcat(exstyle, "WS_EX_WINDOWEDGE ");
     2713  if(dwExStyle & WS_EX_CLIENTEDGE)
     2714        strcat(exstyle, "WS_EX_CLIENTEDGE ");
     2715  if(dwExStyle & WS_EX_CONTEXTHELP)
     2716        strcat(exstyle, "WS_EX_CONTEXTHELP ");
     2717  if(dwExStyle & WS_EX_RIGHT)
     2718        strcat(exstyle, "WS_EX_RIGHT ");
     2719  if(dwExStyle & WS_EX_LEFT)
     2720        strcat(exstyle, "WS_EX_LEFT ");
     2721  if(dwExStyle & WS_EX_RTLREADING)
     2722        strcat(exstyle, "WS_EX_RTLREADING ");
     2723  if(dwExStyle & WS_EX_LTRREADING)
     2724        strcat(exstyle, "WS_EX_LTRREADING ");
     2725  if(dwExStyle & WS_EX_LEFTSCROLLBAR)
     2726        strcat(exstyle, "WS_EX_LEFTSCROLLBAR ");
     2727  if(dwExStyle & WS_EX_RIGHTSCROLLBAR)
     2728        strcat(exstyle, "WS_EX_RIGHTSCROLLBAR ");
     2729  if(dwExStyle & WS_EX_CONTROLPARENT)
     2730        strcat(exstyle, "WS_EX_CONTROLPARENT ");
     2731  if(dwExStyle & WS_EX_STATICEDGE)
     2732        strcat(exstyle, "WS_EX_STATICEDGE ");
     2733  if(dwExStyle & WS_EX_APPWINDOW)
     2734        strcat(exstyle, "WS_EX_APPWINDOW ");
     2735
     2736  dprintf(("Window style:   %x %s", dwStyle, style));
     2737  dprintf(("Window exStyle: %x %s", dwExStyle, exstyle));
     2738}
     2739#endif
     2740//******************************************************************************
     2741//******************************************************************************
    26382742
    26392743GenericObject *Win32BaseWindow::windows  = NULL;
Note: See TracChangeset for help on using the changeset viewer.