ItemListCreateFromControl()

Creates an item list from a control, such as an Appointment list.

Token ID

AFTKN_ITEMLIST_CREATE_FM_CTRL or 697

Syntax

DWORD ItemListCreateFromControl(ENUM ControlListType; 
                                 [ENUM SelectedItemsOnly]; 
                                 [ANSISTRING ControlName])

Parameters

ControlListType As ENUM

Specifies the control list type as follows:

Constant

Value

Comments

AppointmentList

108

Apply to calendar views.

ItemList

44

Apply to Mailbox, Sent Items, or Trash views.

NoteList

188

Apply to calendar views.

SelectedControl

219

Apply to all item views.

TaskList

228

Apply to calendar views.

WeekControl

268

Apply to a Week Calendar view.

SelectedItemsOnly As ENUM

(Optional) Specifies whether to use selected items only:

Constant

Value

Comments

No

0

Default

Yes

1

If specified, the index parameter of the ItemListGetItem command must be 0.

ControlName As ANSISTRING

(Optional) Custom control name.

Return Values

  • DWORD. Item list handle.
  • IMPORTANT: To avoid losing system resources, make sure you delete an item list handle when it is no longer needed.

See Also