Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize

2.2.7.28 MILCMD_VISUAL_INSERTCHILDAT

The MILCMD_VISUAL_INSERTCHILDAT packet inserts a new visual into the child collection of another visual at a specified offset.

The previous contents of the child collection of a visual are determined by the history of all MILCMD_VISUAL_INSERTCHILDAT, MILCMD_VISUAL_REMOVECHILD and MILCMD_VISUAL_REMOVEALLCHILDREN packets that targeted the visual since it was created. This will include all such packets where the targetResource field had the same value as the targetResource field in this packet, that were sent after the last MILCMD_CHANNEL_CREATERESOURCE packet in which the hNewResource field had the same value as the targetResource field in this packet.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

messageSize

controlCode

targetResource

hChild

index

messageSize (4 bytes): A 32-bit unsigned integer. The size of this message in bytes. The value of this field MUST be set to 0x00000014.

controlCode (4 bytes): A 32-bit unsigned integer containing the control code for this message. The value of this field MUST be equal to 0x00000024.

targetResource (4 bytes): A 32-bit unsigned integer. The value of this field MUST be set to a valid resource handle referencing a resource of type TYPE_VISUAL or TYPE_WINDOWNODE. This handle identifies the resource that is the target for this message.

hChild (4 bytes): A 32-bit unsigned integer. The value of this field MUST either be set to zero or set to a valid resource handle referencing a resource of type TYPE_VISUAL or TYPE_WINDOWNODE. This resource MUST NOT be a child of the target visual or any other visual. After this message is processed this resource will be a child of the target visual.

index (4 bytes): A 32-bit unsigned integer. The value of this field MUST be less than or equal to the number of visuals in the child collection. The visual resource associated with the hChild resource handle will be inserted into the child collection at the specified index, shifting existing elements in the collection starting at that index upward by one position.

Show:
© 2016 Microsoft