Jump to content

CM COLLAPSETREE: Difference between revisions

From EDM2
Created page with "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== <PRE> param1 PRECORDCORE pRecord; Pointer to the RECORDCORE structure that is to be collapsed.: param2 ULONG ulReserved; /..."
 
 
Line 11: Line 11:


==Parameters==
==Parameters==
;pRecord ([[PRECORDCORE]]) - Input
;pRecord (P[[RECORDCORE]]) - Input
: Pointer to the [[RECORDCORE]] structure that is to be collapsed.
: Pointer to the [[RECORDCORE]] structure that is to be collapsed.
: If this is NULL, all expanded parent items are collapsed.
: If this is NULL, all expanded parent items are collapsed.

Latest revision as of 21:55, 20 April 2025

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.