home *** CD-ROM | disk | FTP | other *** search
/ C Programming Starter Kit 2.0 / SamsPublishing-CProgrammingStarterKit-v2.0-Win31.iso / bc45 / expert.pak / CDRAGDRP.OWL < prev    next >
Text File  |  1997-07-23  |  460b  |  25 lines

  1. ##--BEGIN-- @OPT_APPL_DRAGDROP
  2. // Drag / Drop support:
  3. TFileDrop::TFileDrop (char* fileName, TPoint& p, bool inClient, TModule*)
  4. {
  5.     char    exePath[MAXPATH];
  6.     
  7.     exePath[0] = 0;
  8.     FileName = strcpy(new char[strlen(fileName) + 1], fileName);
  9.     Point = p;
  10.     InClientArea = inClient;
  11. }
  12.  
  13. TFileDrop::~TFileDrop ()
  14. {
  15.     delete FileName;
  16. }
  17.  
  18. const char *TFileDrop::WhoAmI ()
  19. {
  20.   return FileName;
  21. }
  22.  
  23.  
  24. ##--END-- @OPT_APPL_DRAGDROP
  25.