In an application that accepts drops of buffers, you may want to handle the dropped data in a different way depending on its type. To accomplish data typing, use the data-typing API. Data-typing function calls of interest are DtDtsBufferToDataType() and DtDtsBufferToAttributeValue(). The former returns the data attribute name for the data, the latter returns the value of a specified attribute of the data. Attributes you may find useful for drag and drop are shown in Table 5-8.
Table 5-8 Data-Typing Attributes
Attributes |
Description |
---|---|
ICON |
Path of icon to use for this data. |
MEDIA |
The Message Alliance media name for this data. |
See Chapter 9, Accessing the Data-Typing Database for more information.