INF: Zooming Other Applications in Windows

ID Number: Q22425

2.00 2.03 2.10 3.00

WINDOWS

Summary:

An application can zoom, or maximize, another application by

performing the following two steps:

1. Find the handle to the application's window by using the

EnumWindows function.

2. Use the PostMessage function to post a message to that

application's message queue as follows:

if (fWindowToZoom)

PostMessage(hWndToZoom, WM_SYSCOMMAND, SC_MAXIMIZE, 0L);

An application can use this code to maximize any application running

under Windows.

Additional reference words: 2.x TAR60794