Jump to content

CM COLLAPSETREE

From EDM2
Revision as of 21:55, 20 April 2025 by Martini (talk | contribs) (Parameters)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This message causes one parent item in the tree view to be collapsed. Note: If the CCS_MINIRECORDCORE style bit is specified when a container is created, then MINIRECORDCORE should be used instead of RECORDCORE and PMINIRECORDCORE should be used instead of PRECORDCORE in all applicable data structures and messages.

Syntax

param1
PRECORDCORE pRecord;   /* Pointer to the RECORDCORE structure that is to be collapsed. */

param2
ULONG ulReserved;    /* Reserved value, should be 0. */

Parameters

pRecord (PRECORDCORE) - Input
Pointer to the RECORDCORE structure that is to be collapsed.
If this is NULL, all expanded parent items are collapsed.
Note: If the CCS_MINIRECORDCORE style bit is specified when a container is created, then MINIRECORDCORE should be used instead of RECORDCORE and PMINIRECORDCORE should be used instead of PRECORDCORE in all applicable data structures and messages.
ulReserved (ULONG) - Input
Reserved value, should be 0.

Returns

rc (BOOL) - returns
Success indicator.
TRUE: The item was successfully collapsed.
FALSE: An error occurred. The WinGetLastError function may return the following error:
PMERR_INVALID_PARAMETERS.

Remarks

None.

Default Processing

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