Ignore:
Timestamp:
Dec 18, 1999, 5:31:52 PM (26 years ago)
Author:
cbratschi
Message:

MDI fixes, ChildWindowFromPointEx

File:
1 edited

Legend:

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

    r2099 r2114  
    1 /* $Id: win32wmdiclient.cpp,v 1.15 1999-12-17 17:18:04 cbratschi Exp $ */
     1/* $Id: win32wmdiclient.cpp,v 1.16 1999-12-18 16:31:51 cbratschi Exp $ */
    22/*
    33 * Win32 MDI Client Window Class for OS/2
     
    437437        if( child == getActiveChild() )
    438438        {
    439             ShowWindow(SW_HIDE);
     439            ::ShowWindow(child->getWindowHandle(),SW_HIDE);
    440440            if( child == getMaximizedChild() )
    441441            {
     
    455455    if (flagDestroy)
    456456    {
    457 //        MDI_PostUpdate(GetParent(child), ci, SB_BOTH+1);
     457        postUpdate(SB_BOTH+1);
    458458        ::DestroyWindow(child->getWindowHandle());
    459459    }
     
    687687
    688688/**********************************************************************
    689  *                      MDI_CalcDefaultChildPos
     689 *                      MDI_CalcDefaultChildPos
    690690 *
    691691 *  It seems that the default height is about 2/3 of the client rect
     
    696696    RECT rect = *this->getClientRect();
    697697    INT  spacing = GetSystemMetrics(SM_CYCAPTION) +
    698                      GetSystemMetrics(SM_CYFRAME) - 1;
     698                     GetSystemMetrics(SM_CYFRAME) - 1;
    699699
    700700    if( rect.bottom - rect.top - delta >= spacing )
    701         rect.bottom -= delta;
     701        rect.bottom -= delta;
    702702
    703703    nstagger = (rect.bottom - rect.top)/(3 * spacing);
     
    11081108}
    11091109
     1110/*****************************************************************************
     1111 * Name      : WORD WIN32API CascadeWindows
     1112 * Purpose   : The CascadeWindows function cascades the specified windows or
     1113 *             the child windows of the specified parent window.
     1114 * Parameters: HWND hwndParent         handle of parent window
     1115 *             UINT wHow               types of windows not to arrange
     1116 *             CONST RECT * lpRect     rectangle to arrange windows in
     1117 *             UINT cKids              number of windows to arrange
     1118 *             const HWND FAR * lpKids array of window handles
     1119 * Variables :
     1120 * Result    : If the function succeeds, the return value is the number of windows arranged.
     1121 *             If the function fails, the return value is zero.
     1122 * Remark    :
     1123 * Status    : UNTESTED STUB
     1124 *
     1125 * Author    : Patrick Haller [Thu, 1998/02/26 11:55]
     1126 *****************************************************************************/
     1127WORD WIN32API CascadeWindows(HWND       hwndParent,
     1128                             UINT       wHow,
     1129                             CONST LPRECT lpRect,
     1130                             UINT       cKids,
     1131                             const HWND *lpKids)
     1132{
     1133  dprintf(("USER32:CascadeWindows(%08xh,%u,%08xh,%u,%08x) not implemented.\n",
     1134         hwndParent,
     1135         wHow,
     1136         lpRect,
     1137         cKids,
     1138         lpKids));
     1139
     1140  return (0);
     1141}
     1142
     1143/*****************************************************************************
     1144 * Name      : BOOL WIN32API CascadeChildWindows
     1145 * Purpose   : Unknown
     1146 * Parameters: Unknown
     1147 * Variables :
     1148 * Result    :
     1149 * Remark    :
     1150 * Status    : UNTESTED UNKNOWN STUB
     1151 *
     1152 * Author    : Patrick Haller [Wed, 1998/06/16 11:55]
     1153 *****************************************************************************/
     1154BOOL WIN32API CascadeChildWindows(DWORD x1,
     1155                                     DWORD x2)
     1156{
     1157  dprintf(("USER32: CascadeChildWindows(%08xh,%08xh) not implemented.\n",
     1158           x1,
     1159           x2));
     1160
     1161  return (FALSE); /* default */
     1162}
     1163
     1164/*****************************************************************************
     1165 * Name      : WORD WIN32API TileWindows
     1166 * Purpose   : The TileWindows function tiles the specified windows, or the child
     1167 *             windows of the specified parent window.
     1168 * Parameters: HWND       hwndParent     handle of parent window
     1169 *             WORD       wFlags         types of windows not to arrange
     1170 *             LPCRECT    lpRect         rectangle to arrange windows in
     1171 *             WORD       cChildrenb     number of windows to arrange
     1172 *             const HWND *ahwndChildren array of window handles
     1173 * Variables :
     1174 * Result    : If the function succeeds, the return value is the number of
     1175 *               windows arranged.
     1176 *             If the function fails, the return value is zero.
     1177 * Remark    :
     1178 * Status    : UNTESTED STUB
     1179 *
     1180 * Author    : Patrick Haller [Thu, 1998/02/26 11:55]
     1181 *****************************************************************************/
     1182WORD WIN32API TileWindows(HWND       hwndParent,
     1183                          UINT       wFlags,
     1184                          const LPRECT lpRect,
     1185                          UINT       cChildrenb,
     1186                          const HWND *ahwndChildren)
     1187{
     1188  dprintf(("USER32:TileWindows (%08xh,%08xh,%08xh,%08xh,%08x) not implemented.\n",
     1189           hwndParent,
     1190           wFlags,
     1191           lpRect,
     1192           cChildrenb,
     1193           ahwndChildren));
     1194
     1195   return (0);
     1196}
     1197
     1198/*****************************************************************************
     1199 * Name      : BOOL WIN32API TileChildWindows
     1200 * Purpose   : Unknown
     1201 * Parameters: Unknown
     1202 * Variables :
     1203 * Result    :
     1204 * Remark    :
     1205 * Status    : UNTESTED UNKNOWN STUB
     1206 *
     1207 * Author    : Patrick Haller [Wed, 1998/06/16 11:55]
     1208 *****************************************************************************/
     1209BOOL WIN32API TileChildWindows(DWORD x1,
     1210                                  DWORD x2)
     1211{
     1212  dprintf(("USER32: TileChildWindows(%08xh,%08xh) not implemented.\n",
     1213           x1,
     1214           x2));
     1215
     1216  return (FALSE); /* default */
     1217}
     1218
    11101219/* -------- Miscellaneous service functions ----------
    11111220 *
Note: See TracChangeset for help on using the changeset viewer.