# DM_GETDLGITEM

The DM_GETDLGITEM message is sent to the dialog handler to retrieve complete information about a dialog item.

### Param1

Dialog item ID.

### Param2

Pointer to a FarDialogItem structure.

### Return

TRUE is returned if the data was retrieved successfully. If Param1 contains an invalid item ID, FALSE is returned.

### Controls

Control | Description
--- | ---
All | All dialog items

### Remarks

### Example

    // retrieve parameters of 12th item
    struct FarDialogItem DialogItem;

    Info.SendDlgMessage(hDlg,DM_GETDLGITEM,12,(LONG_PTR)&DialogItem);

See also:
DialogEx
DM_GETITEMPOSITION
DM_GETDLGRECT