Microsoft KB Archive/67130

PROS29012015: MDI Sample Program Problem with GetArrangeSwp PSS ID Number: Q67130 Article last modified on 06-25-1991 PSS database name: O_Os2PrTk

1.21

OS/2

Summary:

PROBLEM ID: OS29012015

SYMPTOMS In the MDI sample program included with the Presentation Manager (PM) version 1.21 Programmer’s Toolkit (PTK), the Arrange menu item is not displayed correctly if one or more document windows are iconized. A large black square is displayed in the middle of the MDI application’s client area.

CAUSE This problem occurs because the arrange code included with the MDI sample program incorrectly enumerates the little window beneath the active icon that contains the icon text.

RESOLUTION/STATUS This problem can be resolved by making a change to the GetArrangeSwp function in ARRANGE.C. The following code fragment is contained in GetArrangeSwp:

if (WinQueryWindow(hwnd, QW_OWNER, FALSE) ||       !(ulStyle & WS_VISIBLE)) { continue; } The logic of this block of code needs to be altered. It is only necessary to skip those windows NOT owned by the FID_CLIENT window of the MDI application. Since the little icon text window is not owned by the FID_CLIENT window, this window should be skipped. This will result in the proper behavior of the GetArrangeSwp function.

Microsoft has confirmed this to be a problem in the version of the MDI sample program included with the PM version 1.21 PTK. We are researching this problem and will post new information here as it becomes available.

Copyright Microsoft Corporation 1991.