Ignore:
Timestamp:
Oct 30, 1999, 5:16:58 PM (26 years ago)
Author:
dengert
Message:

fix repaints for transparent windows

File:
1 edited

Legend:

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

    r1511 r1522  
    1 /* $Id: oslibwin.cpp,v 1.38 1999-10-29 16:06:55 cbratschi Exp $ */
     1/* $Id: oslibwin.cpp,v 1.39 1999-10-30 15:16:58 dengert Exp $ */
    22/*
    33 * Window API wrappers for OS/2
     
    6969  ULONG dwClientStyle;
    7070
     71#if 0
    7172//  if(dwFrameStyle || hwndParent == HWND_DESKTOP) {
    7273        dwClientStyle = dwWinStyle & ~(WS_TABSTOP | WS_GROUP | WS_CLIPSIBLINGS);
     
    8990        dprintf(("OSLibWinCreateWindow: (FRAME) WinCreateStdWindow failed (%x)", WinGetLastError(GetThreadHAB())));
    9091        return 0;
     92#else
     93  BOOL TopLevel = hwndParent == HWND_DESKTOP;
     94  FRAMECDATA FCData = {sizeof (FRAMECDATA), 0, 0, 0};
     95
     96  dwClientStyle = dwWinStyle & ~(WS_TABSTOP | WS_GROUP | WS_CLIPSIBLINGS);
     97
     98  dwFrameStyle |= FCF_NOBYTEALIGN;
     99  if (hwndParent == HWND_DESKTOP && dwFrameStyle & FCF_TITLEBAR) {
     100    dwFrameStyle |= FCF_TASKLIST | FCF_NOMOVEWITHOWNER;
     101  }
     102
     103  dwWinStyle &= ~(WS_CLIPCHILDREN | WS_CLIPSIBLINGS);
     104  FCData.flCreateFlags = dwFrameStyle;
     105
     106  *hwndFrame = WinCreateWindow (hwndParent,
     107                                TopLevel ? WC_FRAME : WIN32_INNERFRAME,
     108                                pszName, dwWinStyle, 0, 0, 50, 30,
     109                                hwndParent, HWND_TOP, id, &FCData, NULL);
     110  if (*hwndFrame) {
     111    hwndClient = WinCreateWindow (*hwndFrame, WIN32_STDCLASS,
     112                                  NULL, dwClientStyle, 0, 0, 0, 0,
     113                                  *hwndFrame, HWND_TOP, FID_CLIENT, NULL, NULL);
     114    if (hwndClient != NULLHANDLE)
     115      WinSendMsg (*hwndFrame, WM_UPDATEFRAME, 0, 0);
     116    return hwndClient;
     117  }
     118  dprintf(("OSLibWinCreateWindow: (FRAME) WinCreateStdWindow failed (%x)", WinGetLastError(GetThreadHAB())));
     119  return 0;
     120#endif
     121
    91122#if 0
    92123  }
Note: See TracChangeset for help on using the changeset viewer.