DrgVerifyTrueType - Example Code

This example verifies whether a given type is present in the list of types defined for a drag object.

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

BOOL      fValid;
DRAGITEM  Dragitem;      /* DRAGITEM structure whose hstrType is */
                         /* to be verified                       */

char pszType[8];         /* A string specifying the types to     */
                         /* search for                           */

strcpy(pszType,DRT_EXE); /* Executable file type. See the      */
                           /* DRAGINFO structure for valid       */
                           /* types.                             */

fValid = DrgVerifyTrueType(&Dragitem, pszType);


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