please dont rip this site Prev Next

WINDOWPLACEMENT info  Overview  Group

The WINDOWPLACEMENT structure contains information about the placement of a window on the screen.

typedef struct _WINDOWPLACEMENT {     // wndpl 

    UINT  length; 

    UINT  flags; 

    UINT  showCmd; 

    POINT ptMinPosition; 

    POINT ptMaxPosition; 

    RECT  rcNormalPosition; 

} WINDOWPLACEMENT; 

 

Members

length
Specifies the length, in bytes, of the structure. Before calling the GetWindowPlacement or SetWindowPlacement functions, set this member to sizeof(WINDOWPLACEMENT).

GetWindowPlacement and SetWindowPlacement fail if this member is not set correctly.

flags
Specifies flags that control the position of the minimized window and the method by which the window is restored. This member can be one or both of the following values:

Value

Meaning

WPF_RESTORETOMAXIMIZED

Specifies that the restored window will be maximized, regardless of whether it was maximized before it was minimized. This setting is only valid the next time the window is restored. It does not change the default restoration behavior. This flag is only valid when the SW_SHOWMINIMIZED value is specified for the showCmd member.

WPF_SETMINPOSITION

Specifies that the coordinates of the minimized window may be specified. This flag must be specified if the coordinates are set in the ptMinPosition member.

showCmd
Specifies the current show state of the window. This member can be one of the following values:

Value

Meaning

SW_HIDE

Hides the window and activates another window.

SW_MINIMIZE

Minimizes the specified window and activates the top-level window in the system’s list.

SW_RESTORE

Activates and displays a window. If the window is minimized or maximized, Windows restores it to its original size and position (same as SW_SHOWNORMAL).

SW_SHOW

Activates a window and displays it in its current size and position.

SW_SHOWMAXIMIZED

Activates a window and displays it as a maximized window.

SW_SHOWMINIMIZED

Activates a window and displays it as an icon.

SW_SHOWMINNOACTIVE

Displays a window as an icon. The active window remains active.

SW_SHOWNA

Displays a window in its current state. The active window remains active.

SW_SHOWNOACTIVATE

Displays a window in its most recent size and position. The active window remains active.

SW_SHOWNORMAL

Activates and displays a window. If the window is minimized or maximized, Windows restores it to its original size and position (same as SW_RESTORE).

ptMinPosition
Specifies the coordinates of the window’s upper-left corner when the window is minimized.
ptMaxPosition
Specifies the coordinates of the window’s upper-left corner when the window is maximized.
rcNormalPosition
Specifies the window’s coordinates when the window is in the restored position.

See Also

ShowWindow, POINT, RECT 


file: /Techref/os/win/api/win32/struc/src/str24_15.htm, 6KB, , updated: 2000/4/7 11:20, local time: 2024/11/18 17:36,
TOP NEW HELP FIND: 
13.59.183.67:LOG IN

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://massmind.ecomorder.com/Techref/os/win/api/win32/struc/src/str24_15.htm"> WINDOWPLACEMENT</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 

Welcome to ecomorder.com!

 

Welcome to massmind.ecomorder.com!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .