windows_programming_notes.nbk: Home | Index | Next Page: MoveToEx | Previous Page: MessageBoxIndirect
MINMAXINFO
The MINMAXINFO structure contains information about a window's maximized size and position and its minimum and maximum tracking size.
Syntax
typedef struct {
POINT ptReserved;
POINT ptMaxSize;
POINT ptMaxPosition;
POINT ptMinTrackSize;
POINT ptMaxTrackSize;
} MINMAXINFO;
Members
- ptReserved
Reserved; do not use.
- ptMaxSize
Specifies the maximized width (POINT.x) and the maximized height (POINT.y) of the window. For top-level windows, this value is based on the width of the primary monitor.
- ptMaxPosition
Specifies the position of the left side of the maximized window (POINT.x) and the position of the top of the maximized window (POINT.y). For top-level windows, this value is based on the position of the primary monitor.
- ptMinTrackSize
Specifies the minimum tracking width (POINT.x) and the minimum tracking height (POINT.y) of the window. This value can be obtained programmatically from the system metrics SM_CXMINTRACK and SM_CYMINTRACK.
- ptMaxTrackSize
Specifies the maximum tracking width (POINT.x) and the maximum tracking height (POINT.y) of the window. This value is based on the size of the virtual screen and can be obtained programmatically from the system metrics SM_CXMAXTRACK and SM_CYMAXTRACK.
Remarks
For systems with multiple monitors, the ptMaxSize and ptMaxPosition members describe the maximized size and position of the window on the primary monitor, even if the window ultimately maximizes onto a secondary monitor. In that case, the window manager adjusts these values to compensate for differences between the primary monitor and the monitor that displays the window. Thus, if the user leaves ptMaxSize untouched, a window on a monitor larger than the primary monitor maximizes to the size of the larger monitor.
Structure Information
- Header Declared in Winuser.h, include Windows.h
- Minimum operating systems Windows 95, Windows NT 3.1
windows_programming_notes.nbk: Home | Index | Next Page: MoveToEx | Previous Page: MessageBoxIndirect
Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time