Ignore:
Timestamp:
Sep 25, 1999, 5:10:00 PM (26 years ago)
Author:
cbratschi
Message:

WS_EX_* 3D frames for child windows

File:
1 edited

Legend:

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

    r1039 r1046  
    1 /* $Id: win32wbase.cpp,v 1.11 1999-09-25 09:27:07 dengert Exp $ */
     1/* $Id: win32wbase.cpp,v 1.12 1999-09-25 15:10:00 cbratschi Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    4747     !(((style) & (WS_DLGFRAME|WS_BORDER)) == WS_DLGFRAME))
    4848
     49#define HAS_3DFRAME(exStyle) \
     50    ((exStyle & WS_EX_CLIENTEDGE) || (exStyle & WS_EX_STATICEDGE) || (exStyle & WS_EX_WINDOWEDGE))
     51
    4952#define HAS_BORDER(style, exStyle) \
    5053    ((style & WS_BORDER) || HAS_THICKFRAME(style) || HAS_DLGFRAME(style,exStyle))
     
    389392  OSLibWinConvertStyle(cs->style, cs->dwExStyle, &dwOSWinStyle, &dwOSFrameStyle);
    390393
    391   //TODO: Test
    392 #if 1
    393   if(cs->style & WS_CHILD) {
    394         dwOSFrameStyle = 0;
    395   }
    396 #endif
     394//CB: dwOSFrameStyle handled by OSLibWinConvertStyle
     395//    todo: subclass frame WM_PAINT -> call DrawEdge() if HAS_3DFRAME
     396//          OSLibWinCreateWindow: perhaps problems
     397//    shouldn't we always use a frame? -> no problems with scrollbars
    397398
    398399  if(cs->lpszName)
Note: See TracChangeset for help on using the changeset viewer.