Changeset 5777 for trunk/src/user32/win32wbasepos.cpp
- Timestamp:
- May 22, 2001, 11:33:16 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wbasepos.cpp
r5685 r5777 1 /* $Id: win32wbasepos.cpp,v 1.2 4 2001-05-11 08:39:45sandervl Exp $ */1 /* $Id: win32wbasepos.cpp,v 1.25 2001-05-22 09:33:16 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 (nonclient/position methods) … … 308 308 setStyle(getStyle() | WS_MINIMIZE); 309 309 310 iconPos.x = windowpos.ptMinPosition.x; 311 iconPos.y = windowpos.ptMinPosition.y; 312 WINPOS_FindIconPos(getWindowHandle(), iconPos); 313 SetRect(lpRect, iconPos.x, iconPos.y, GetSystemMetrics(SM_CXICON), GetSystemMetrics(SM_CYICON) ); 310 if(getParent() == NULL) { 311 SetRect(lpRect, -32000, -32000, GetSystemMetrics(SM_CXICON), GetSystemMetrics(SM_CYICON)); 312 OSLibSetWindowStyle(getOS2FrameWindowHandle(), getOS2WindowHandle(), getStyle(), getExStyle()); 313 } 314 else { 315 iconPos.x = windowpos.ptMinPosition.x; 316 iconPos.y = windowpos.ptMinPosition.y; 317 WINPOS_FindIconPos(getWindowHandle(), iconPos); 318 SetRect(lpRect, iconPos.x, iconPos.y, GetSystemMetrics(SM_CXICON), GetSystemMetrics(SM_CYICON) ); 319 } 314 320 break; 315 321 … … 319 325 if(getStyle() & WS_MINIMIZE ) 320 326 { 321 setStyle(getStyle() & ~WS_MINIMIZE); 327 setStyle(getStyle() & ~WS_MINIMIZE); 328 OSLibSetWindowStyle(getOS2FrameWindowHandle(), getOS2WindowHandle(), getStyle(), getExStyle()); 322 329 } 323 330 setStyle(getStyle() | WS_MAXIMIZE); … … 331 338 { 332 339 setStyle(getStyle() & ~WS_MINIMIZE); 340 OSLibSetWindowStyle(getOS2FrameWindowHandle(), getOS2WindowHandle(), getStyle(), getExStyle()); 333 341 334 342 if( getFlags() & WIN_RESTORE_MAX)
Note:
See TracChangeset
for help on using the changeset viewer.