Jump to content

CN GRIDRESIZED

From EDM2
Revision as of 21:37, 20 April 2025 by Martini (talk | contribs) (Created page with "This WM_CONTROL notification is sent to the owner of the container whenever the grid is resized. ==Syntax== <PRE> param1 USHORT id; Container control ID.: USHORT CN_GRIDRESIZED; Notification code.: param2 SHORT sGridRows; New number of rows.: SHORT sGridCols; New number of columns.: </PRE> ==Parameters== ;id (USHORT) - Input : Container control ID. ;CN_GRIDRESIZED (USHORT) - Input : Notification code. ;sGridRows (SHORT...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This WM_CONTROL notification is sent to the owner of the container whenever the grid is resized.

Syntax

param1
USHORT id;            /* Container control ID. */
USHORT CN_GRIDRESIZED; /* Notification code. */

param2
SHORT sGridRows;      /* New number of rows. */
SHORT sGridCols;      /* New number of columns. */

Parameters

id (USHORT) - Input
Container control ID.
CN_GRIDRESIZED (USHORT) - Input
Notification code.
sGridRows (SHORT) - Input
New number of rows.
sGridCols (SHORT) - Input
New number of columns.

Returns

ulReserved (ULONG) - returns
Reserved value, should be 0.

Remarks

The grid is usually resized whenever the window is resized. This means there will be more or fewer grid squares than there were previously. After the resizing all grid squares are marked CM_AVAIL, regardless of their state before the resizing. The application must send another CM_SETGRIDINFO message to re-mark the squares as available or unavailable. Re-marking the grid squares is necessary only if the application wants to use the CMA_USER arrange pattern, otherwise the notification can be ignored.

Default Processing

The default window procedure does not expect to receive this notification code and therefore takes no action on it other than to return 0.