Ignore:
Timestamp:
Dec 27, 1999, 11:54:49 PM (26 years ago)
Author:
cbratschi
Message:

* empty log message *

File:
1 edited

Legend:

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

    r2211 r2221  
    1 /* $Id: win32wbase.cpp,v 1.121 1999-12-27 17:08:08 cbratschi Exp $ */
     1/* $Id: win32wbase.cpp,v 1.122 1999-12-27 22:53:53 cbratschi Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    362362
    363363  /* Fix the coordinates */
    364   if (cs->x == CW_USEDEFAULT || cs->x == CW_USEDEFAULT16)
     364  if ((cs->x == CW_USEDEFAULT) || (cs->x == CW_USEDEFAULT16))
    365365  {
    366366//        PDB *pdb = PROCESS_Current();
     
    382382        * the one that comes with Win95 and NT)
    383383        */
    384         if (cs->y != CW_USEDEFAULT && cs->y != CW_USEDEFAULT16) sw = cs->y;
     384        if ((cs->y != CW_USEDEFAULT) && (cs->y != CW_USEDEFAULT16)) sw = cs->y;
    385385
    386386        /* We have saved cs->y, now we can trash it */
     
    397397//        }
    398398  }
    399   if (cs->cx == CW_USEDEFAULT || cs->cx == CW_USEDEFAULT16)
     399  if ((cs->cx == CW_USEDEFAULT) || (cs->cx == CW_USEDEFAULT16))
    400400  {
    401401#if 0
     
    439439  {
    440440        SetParent(0);
    441         if (!cs->hwndParent || cs->hwndParent == windowDesktop->getWindowHandle()) {
     441        if (!cs->hwndParent || (cs->hwndParent == windowDesktop->getWindowHandle())) {
    442442            owner = NULL;
    443443        }
     
    784784    SendInternalMessageA(WM_NCDESTROY, 0, 0);
    785785
    786     if (hwndHorzScroll && OSLibWinQueryWindow(hwndHorzScroll,QWOS_PARENT) == OSLibWinQueryObjectWindow()) OSLibWinDestroyWindow(hwndHorzScroll);
    787     if (hwndVertScroll && OSLibWinQueryWindow(hwndVertScroll,QWOS_PARENT) == OSLibWinQueryObjectWindow()) OSLibWinDestroyWindow(hwndVertScroll);
     786    if (hwndHorzScroll && (OSLibWinQueryWindow(hwndHorzScroll,QWOS_PARENT) == OSLibWinQueryObjectWindow())) OSLibWinDestroyWindow(hwndHorzScroll);
     787    if (hwndVertScroll && (OSLibWinQueryWindow(hwndVertScroll,QWOS_PARENT) == OSLibWinQueryObjectWindow())) OSLibWinDestroyWindow(hwndVertScroll);
    788788
    789789    TIMER_KillTimerFromWindow(OS2Hwnd);
     
    991991
    992992        HWND hwndActive = GetActiveWindow();
    993         if (hwndTop && getWindowHandle() != hwndActive)
     993        if (hwndTop && (getWindowHandle() != hwndActive))
    994994        {
    995995                LONG ret = SendInternalMessageA(WM_MOUSEACTIVATE, hwndTop,
     
    13421342    UINT uCommand = wParam & 0xFFF0;
    13431343
    1344     if (getStyle() & WS_CHILD && uCommand != SC_KEYMENU )
     1344    if ((getStyle() & WS_CHILD) && (uCommand != SC_KEYMENU))
    13451345        ScreenToClient(getParent()->getWindowHandle(), pt32 );
    13461346
     
    22022202        window = GetWindowFromHandle(hwnd++);
    22032203        if(window) {
    2204             if (window->getStyle() & WS_POPUP || (window->getStyle() & WS_CAPTION) == WS_CAPTION)
     2204            if ((window->getStyle() & WS_POPUP) || ((window->getStyle() & WS_CAPTION) == WS_CAPTION))
    22052205            {
    22062206
     
    22282228        window = GetWindowFromHandle(hwnd++);
    22292229        if(window) {
    2230             if (window->getStyle() & WS_POPUP || (window->getStyle() & WS_CAPTION) == WS_CAPTION)
     2230            if ((window->getStyle() & WS_POPUP) || ((window->getStyle() & WS_CAPTION) == WS_CAPTION))
    22312231            {
    22322232
     
    30123012  if(IsWindowDestroyed()) return;
    30133013
    3014   //CB: todo: dwExStyle, creating new frame controls, destroy not used, WS_VISIBLE, ...
     3014  //CB: todo: dwExStyle, creating new frame controls, destroy not used controls, WS_VISIBLE, WS_CHILD, ...
    30153015  //    write test cases
    3016   if (dwStyle & 0xFFFF0000 != oldStyle & 0xFFFF0000)
     3016  if ((dwStyle & 0xFFFF0000) != (oldStyle & 0xFFFF0000))
     3017  {
     3018    //dprintf(("updateWindowStyle: %x %x",oldStyle,dwStyle));
    30173019    OSLibSetWindowStyle(OS2HwndFrame, dwStyle, fTaskList);
     3020  }
    30183021}
    30193022//******************************************************************************
     
    32713274        }
    32723275
    3273         if (!child || child->getParent() != this)
     3276        if (!child || (child->getParent() != this))
    32743277        {
    32753278            retvalue = 0;
     
    33393342        }
    33403343
    3341         if (!child || child->getParent() != this)
     3344        if (!child || (child->getParent() != this))
    33423345        {
    33433346            retvalue = 0;
     
    33683371    while (TRUE)
    33693372    {
    3370         if (!nextchild || nextchild->getStyle() & WS_GROUP)
     3373        if (!nextchild || (nextchild->getStyle() & WS_GROUP))
    33713374        {
    33723375            /* Wrap-around to the beginning of the group */
Note: See TracChangeset for help on using the changeset viewer.