Changeset 18262


Ignore:
Timestamp:
Dec 30, 2001, 5:51:37 PM (23 years ago)
Author:
sandervl
Message:

enforce WS_EX_WINDOWEDGE

File:
1 edited

Legend:

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

    r18257 r18262  
    1 /* $Id: win32wbase.cpp,v 1.307 2001-12-30 10:48:08 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.308 2001-12-30 16:51:37 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    444444    if (fXDefault && !fCXDefault) fXDefault = FALSE; //CB: only x positioning doesn't work (calc.exe,cdrlabel.exe)
    445445
     446
     447    /* Correct the window style - stage 1
     448     *
     449     * These are patches that appear to affect both the style loaded into the
     450     * WIN structure and passed in the CreateStruct to the WM_CREATE etc.
     451     *
     452     * WS_EX_WINDOWEDGE appears to be enforced based on the other styles, so
     453     * why does the user get to set it?
     454     */
     455
     456    /* This has been tested for WS_CHILD | WS_VISIBLE.  It has not been
     457     * tested for WS_POPUP
     458     */
     459    if ((cs->dwExStyle & WS_EX_DLGMODALFRAME) ||
     460        ((!(cs->dwExStyle & WS_EX_STATICEDGE)) &&
     461          (cs->style & (WS_DLGFRAME | WS_THICKFRAME))))
     462        cs->dwExStyle |= WS_EX_WINDOWEDGE;
     463    else
     464        cs->dwExStyle &= ~WS_EX_WINDOWEDGE;
     465
    446466    //Allocate window words
    447467    nrUserWindowBytes = windowClass->getExtraWndBytes();
     
    497517    hwndLinkAfter = ((cs->style & (WS_CHILD|WS_MAXIMIZE)) == WS_CHILD) ? HWND_BOTTOM : HWND_TOP;
    498518
    499     /* Correct the window style */
     519    /* Correct the window style phase 2 */
    500520    if (!(cs->style & WS_CHILD))
    501521    {
Note: See TracChangeset for help on using the changeset viewer.