- Timestamp:
- Feb 22, 2003, 10:54:25 AM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/pmwindow.cpp
r9792 r9834 1 /* $Id: pmwindow.cpp,v 1. 199 2003-02-13 10:34:49sandervl Exp $ */1 /* $Id: pmwindow.cpp,v 1.200 2003-02-22 09:54:25 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Managment Code for OS/2 … … 1904 1904 break; 1905 1905 } 1906 //hack alert: as we return zero as border size (check handler) we need 1907 //to do adjustments here as well or PM will calculate it for us and 1908 //result will be illegal. Btw we do not honour PM border size settings 1909 //and never will. I was unable to figure out why only X coordinate 1910 //is being broken but not Y as well. 1911 1912 if ((pswp->fl & SWP_MAXIMIZE) == SWP_MAXIMIZE) 1913 { 1914 RECT rect; 1915 rect.left = rect.top = rect.right = rect.bottom = 0; 1916 win32wnd->AdjustMaximizedRect(&rect); 1917 1918 pswp->x += rect.left; 1919 } 1906 1920 goto RunDefFrameWndProc; 1907 1921 } … … 1926 1940 if ((swp->fl & SWP_MAXIMIZE) == SWP_MAXIMIZE) 1927 1941 { 1928 win32wnd->setStyle((win32wnd->getStyle() & ~WS_MINIMIZE_W) | WS_MAXIMIZE_W);1929 1930 1942 RECT rect; 1931 1932 1943 rect.left = rect.top = rect.right = rect.bottom = 0; 1933 1944 win32wnd->AdjustMaximizedRect(&rect); 1945 1934 1946 swp->x += rect.left; 1935 1947 swp->cx += rect.right-rect.left; 1936 1948 swp->y -= rect.bottom; 1937 1949 swp->cy += rect.bottom-rect.top; 1950 1951 win32wnd->ShowWindow(SW_RESTORE_W); 1938 1952 } 1939 1953 else
Note:
See TracChangeset
for help on using the changeset viewer.