DrgVerifyRMF - Example Code

This example determines if a given rendering mechanism and format are supported for a dragged object.

#define INCL_WINSTDDRAG  /* Direct Manipulation (Drag) Functions */
#include <OS2.H>

DRAGITEM Dragitem;       /* DRAGITEM structure whose native      */
                         /* rendering mechanism and format are   */
                         /* to be validated                      */
char pszMech[] = "DRM_OS2FILE";
                         /* A string specifying the rendering    */
                         /* mechanism to search for              */
char pszFormat[] = "DRF_TEXT";
                         /* A string specifying the rendering    */
                         /* format to search for                 */

if(DrgVerifyRMF(&Dragitem, pszMech, pszFormat))
                         /* Mechanism is an OS/2 file and format */
                         /* is a null-terminated string          */
{
                         /* Code block                           */
}


[Back: DrgVerifyRMF - Related Functions]
[Next: DrgVerifyRMF - Topics]