Ignore:
Timestamp:
Aug 26, 2002, 7:57:17 PM (23 years ago)
Author:
umoeller
Message:

Misc changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/helpers/winh.c

    r213 r215  
    8989#include "helpers\standards.h"
    9090#include "helpers\stringh.h"
    91 #include "helpers\undoc.h"
    9291#include "helpers\xstring.h"            // extended string helpers
    9392
     
    27262725 *
    27272726 *@@added V0.9.19 (2002-04-17) [umoeller]
     2727 *@@changed V0.9.21 (2002-08-26) [umoeller]: fixed cx and cy confusion
    27282728 */
    27292729
     
    27322732                      ULONG fl)
    27332733{
    2734     BOOL brc = FALSE;
    2735 
    27362734    SWP     swpRel,
    27372735            swpThis;
     
    27612759        yNew = ptlRel.y  + ((swpRel.cy - swpThis.cy) / 2);
    27622760
    2763         if (xNew + swpThis.cy > WinQuerySysValue(HWND_DESKTOP, SV_CXSCREEN))
     2761        // if (xNew + swpThis.cy > WinQuerySysValue(HWND_DESKTOP, SV_CXSCREEN))
     2762                // not cy, but cx V0.9.21 (2002-08-26) [umoeller]
     2763        if (xNew + swpThis.cx > WinQuerySysValue(HWND_DESKTOP, SV_CXSCREEN))
    27642764        {
    27652765            // place left then
     
    27702770                // center then
    27712771                winhCenterWindow(hwnd);
    2772                 brc = TRUE;
     2772                return TRUE;
    27732773            }
    27742774        }
    27752775
    2776         if (!brc)
    2777             brc = WinSetWindowPos(hwnd,
    2778                                   0,
    2779                                   xNew,
    2780                                   yNew,
    2781                                   0,
    2782                                   0,
    2783                                   SWP_MOVE);
    2784     }
    2785 
    2786     return brc;
     2776        return WinSetWindowPos(hwnd,
     2777                               0,
     2778                               xNew,
     2779                               yNew,
     2780                               0,
     2781                               0,
     2782                               SWP_MOVE);
     2783    }
     2784
     2785    return FALSE;
    27872786}
    27882787
Note: See TracChangeset for help on using the changeset viewer.