The following sample code shows how to allocate memory for one container record when the MINIRECORDCORE data structure is used. A pointer to the MINIRECORDCORE data structure is returned.

HWND            hwndCnr;        /* Container window handle             */
PMINIRECORDCORE pRecord;        /* Pointer to MINIRECORDCORE structure */
ULONG           nRecords = 1;   /* 1 record to be allocated            */

pRecord =
  (PMINIRECORDCORE)WinSendMsg(
    hwndCnr,                    /* Container window handle             */
    CM_ALLOCRECORD,             /* Message for allocating the record   */
    NULL,                       /* No additional memory                */
    (MPARAM)nRecords);          /* Number of records to be allocated   */


[Back] [Next]