BUG: FoxPro Window Does Not Move to Front

ID: Q123429

The information in this article applies to:

SYMPTOMS

It is not possible to bring the Microsoft FoxPro window to the top when another window is on top of it. This problem occurs if a window was created by the DEFINE WINDOW command.

RESOLUTION

Do not use MsgBox() and do not call any functions in the Windows API (such as MessageBox) that create new windows. Instead, use the DEFINE WINDOW command in FoxPro to create all windows.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps to Reproduce Problem

1. Resize the Microsoft FoxPro window so that it is not full screen.

2. Execute the following code in the Command window:

   SET LIBRARY TO foxtools.fll
   ? msgbox("One","Two",0)

3. Invoke the task manager.

4. Select an application that has a window that will fall on top of the

   Microsoft FoxPro window. For example, if the Program Manager consumes
   90% of the desktop, choosing the Program Manager should cause the
   Program Manager window to cover the Microsoft FoxPro window.

5. Invoke the task manager.

6. Select Microsoft FoxPro.

At this point, the Message Box will appear on top of the Program Manager window (or the window selected in step 4). The Microsoft FoxPro window will not be brought to the forefront, even though the Microsoft FoxPro window was requested in step 6.

Additional reference words: FoxWin 2.60a buglist2.60a KBCategory: kbprint kbbuglist KBSubcategory: FxprintFont

Last Reviewed: June 26, 1995