home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / WHOAMI.ZIP / whoami.c < prev    next >
Text File  |  1992-07-13  |  2KB  |  69 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: whoami.c.
  5.  * Generated using:
  6.  *     SOM Precompiler spc: 1.22
  7.  *     SOM Emitter emitc: 1.24
  8.  */
  9.  
  10. #define Whoami_Class_Source
  11. #include "whoami.ih"
  12.  
  13. SOM_Scope MRESULT   SOMLINK wpDrop(Whoami *somSelf,
  14.         HWND hwndCnr,
  15.         PDRAGINFO pdrgInfo,
  16.         PDRAGITEM pdrgItem)
  17. {
  18.     char szDataType[80];
  19.  
  20.     /* WhoamiData *somThis = WhoamiGetData(somSelf); */
  21.     WhoamiMethodDebug("Whoami","wpDrop");
  22.  
  23.        DrgQueryStrName(pdrgItem->hstrSourceName, 80, szDataType);
  24.         WinMessageBox(HWND_DESKTOP,
  25.                       HWND_DESKTOP,
  26.                       szDataType,
  27.                       "Who Am I?",
  28.                       0,
  29.                       MB_NOICON | MB_OK | MB_MOVEABLE);
  30.  
  31.         return 0;
  32.  
  33. //    return (parent_wpDrop(somSelf,hwndCnr,pdrgInfo,pdrgItem));
  34. }
  35.  
  36. SOM_Scope HWND   SOMLINK wpOpen(Whoami *somSelf,
  37.         HWND hwndCnr,
  38.         ULONG ulView,
  39.         ULONG param)
  40. {
  41.     /* WhoamiData *somThis = WhoamiGetData(somSelf); */
  42.     WhoamiMethodDebug("Whoami","wpOpen");
  43.     if (ulView != OPEN_SETTINGS)
  44.       WinMessageBox(HWND_DESKTOP,
  45.                     HWND_DESKTOP,
  46.                     "This program identifies objects dropped on it.",
  47.                     "Who Am I?",
  48.                     0,
  49.                     MB_MOVEABLE | MB_OK);
  50.     else
  51.       return (parent_wpOpen(somSelf,hwndCnr,ulView,param));
  52. }
  53.  
  54. SOM_Scope MRESULT   SOMLINK wpDraggedOverObject(Whoami *somSelf,
  55.         WPObject *DraggedOverObject)
  56. {
  57.     /* WhoamiData *somThis = WhoamiGetData(somSelf); */
  58.     WhoamiMethodDebug("Whoami","wpDraggedOverObject");
  59.       WinMessageBox(HWND_DESKTOP,
  60.                     HWND_DESKTOP,
  61.                     "Don't move me!!",
  62.                     "Who Am I?",
  63.                     0,
  64.                     MB_MOVEABLE | MB_OK);
  65.       return 0;
  66.  
  67. //    return (parent_wpDraggedOverObject(somSelf,DraggedOverObject));
  68. }
  69.