lnMinTrackSizeX = 200
lnMinTrackSizeY = 300
*
lnMaxTrackSizeX = 400
lnMaxTrackSizeY = 1000
Here's what I get. Are the return values supposed to be referenced in pairs?Before setting the min/max values: 1926, 1206, 5532, 1212 After : 1926, 1206, 400, 1000This is what MS has to say about the structure:
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.