Ignore:
Timestamp:
Feb 20, 2001, 4:40:23 PM (25 years ago)
Author:
sandervl
Message:

ScrollWindow, maximized window + system menu fixes

File:
1 edited

Legend:

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

    r5191 r5215  
    1 /* $Id: oslibwin.cpp,v 1.87 2001-02-19 13:13:02 sandervl Exp $ */
     1/* $Id: oslibwin.cpp,v 1.88 2001-02-20 15:40:22 sandervl Exp $ */
    22/*
    33 * Window API wrappers for OS/2
     
    821821}
    822822//******************************************************************************
    823 //******************************************************************************
     823//Returns the maximum position for a window
     824//Should only be used from toplevel windows
     825//******************************************************************************
     826BOOL OSLibWinGetMaxPosition(HWND hwndOS2, RECT *rect)
     827{
     828 SWP  swp;
     829 
     830  if(!WinGetMaxPosition(hwndOS2, &swp)) {
     831        dprintf(("WARNING: WinGetMaxPosition %x returned FALSE", hwndOS2));
     832        return FALSE;
     833  }
     834  rect->left   = swp.x;
     835  rect->right  = swp.x + swp.cx;
     836  rect->top    = ScreenHeight - (swp.y + swp.cy);
     837  rect->bottom = ScreenHeight - swp.y;
     838  return TRUE;
     839}
     840//******************************************************************************
     841//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.