IN_WIN_* values

Values

ID

Meaning

IN_WIN_HIDE

0

hide the window and activate another window

IN_WIN_SHOWNORMAL

1

activate and display the window. Restore the window to its original position if minimized or maximized.

IN_WIN_NORMAL

1

same as SHOWNORMAL

IN_WIN_SHOWMINIMIZED

2

activate and minimize the window

IN_WIN_SHOWMAXIMIZED

3

activate and maximize the window

IN_WIN_MAXIMIZE

3

same as SHOWMAXIMIZED

IN_WIN_SHOWNOACTIVATE

4

display the window in its most recent size and position. Keep the current window active.

IN_WIN_SHOW

5

activate and display the window in its current size and position

IN_WIN_MINIMIZE

6

minimize the window and activate the top-level window in the window-manager's list

IN_WIN_SHOWMINNOACTIVE

7

minimize the window. Keep the current window active.

IN_WIN_SHOWNA

8

display the window in its current state. Keep the current window active.

IN_WIN_RESTORE

9

same as SHOWNORMAL

IN_WIN_SHOW_UNICONIFY

10

same as SHOWMAXIMIZED

IN_WIN_SHOW_TOPMOST

11

activate and display the window on top of any running application

IN_WIN_SHOW_NOTTOPMOST

12

activate and display the window behind any other running applications

 

SHOWNORMAL and SHOWMAXIMIZED produce two different results. If you maximize the window, minimize it, and then call SHOWNORMAL twice for the window, it will first return to a maximized state and then to the state it was in before you maximized it. If you choose SHOWMAXIMIZED instead, it will return to the maximized state and remain there if you choose SHOWMAXIMIZED again.