Jump to content

CN COLLAPSETREE: Difference between revisions

From EDM2
Created page with "This message is sent by the container control to its owner when the container collapses a parent item in the tree view. ==Syntax== <PRE> param1 USHORT id; Container control ID.: USHORT CN_COLLAPSETREE; Notification code.: param2 PRECORDCORE pRecord; Pointer to the record that was collapsed.: </PRE> ==Parameters== ;id (USHORT) - Input : Container control ID. ;CN_COLLAPSETREE (USHORT) - Input : Notification code. ;pRecord (PRECORDC..."
 
No edit summary
 
Line 15: Line 15:
;CN_COLLAPSETREE ([[USHORT]]) - Input
;CN_COLLAPSETREE ([[USHORT]]) - Input
: Notification code.
: Notification code.
;pRecord ([[PRECORDCORE]]) - Input
;pRecord (P[[RECORDCORE]]) - Input
: Pointer to the record that was collapsed.
: Pointer to the record that was 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.
:'''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.

Latest revision as of 19:31, 20 April 2025

This message is sent by the container control to its owner when the container collapses a parent item in the tree view.

Syntax

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

param2
PRECORDCORE pRecord;    /* Pointer to the record that was collapsed. */

Parameters

id (USHORT) - Input
Container control ID.
CN_COLLAPSETREE (USHORT) - Input
Notification code.
pRecord (PRECORDCORE) - Input
Pointer to the record that was 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.

Returns

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

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.