Changeset 215 for trunk/src/helpers/winh.c
- Timestamp:
- Aug 26, 2002, 7:57:17 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/winh.c
r213 r215 89 89 #include "helpers\standards.h" 90 90 #include "helpers\stringh.h" 91 #include "helpers\undoc.h"92 91 #include "helpers\xstring.h" // extended string helpers 93 92 … … 2726 2725 * 2727 2726 *@@added V0.9.19 (2002-04-17) [umoeller] 2727 *@@changed V0.9.21 (2002-08-26) [umoeller]: fixed cx and cy confusion 2728 2728 */ 2729 2729 … … 2732 2732 ULONG fl) 2733 2733 { 2734 BOOL brc = FALSE;2735 2736 2734 SWP swpRel, 2737 2735 swpThis; … … 2761 2759 yNew = ptlRel.y + ((swpRel.cy - swpThis.cy) / 2); 2762 2760 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)) 2764 2764 { 2765 2765 // place left then … … 2770 2770 // center then 2771 2771 winhCenterWindow(hwnd); 2772 brc =TRUE;2772 return TRUE; 2773 2773 } 2774 2774 } 2775 2775 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; 2787 2786 } 2788 2787
Note:
See TracChangeset
for help on using the changeset viewer.