## Presentation Device Driver Reference for OS/2

[prev][next][parent][TOC]

### DJP_ITEM Field - cb

cb (ULONG) Size of the DJP_ITEM structure.

The list of DJP_ITEM items are of variable size. Therefore, you must choose an appropriate method to determine the size of the item depending on the complexity. Simple items can use sizeof (DJP_ITEM). Complex items should use DJP_HEADER_SIZE and the size of the corresponding type. For example:

          /* simple   */

          pDJP->cb = sizeof (DJP_ITEM);

          /* complex  */

          pDJP->cb = DJP_HEADER_SIZE + sizeof (DJPT_FORM);

To move to the next structure, use the DJP_NEXT_STRUCTP() macro:

         pDJP = DJP_NEXT_STRUCTP (pDJP);