home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / WPSDEM.ZIP / FOOT / FOOT.C next >
Text File  |  1992-07-14  |  1KB  |  52 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: foot.c.
  5.  * Generated using:
  6.  *     SOM Precompiler spc: 1.22
  7.  *     SOM Emitter emitc: 1.24
  8.  */
  9.  
  10. #define OneFoot_Class_Source
  11. #include "foot.ih"
  12.  
  13. SOM_Scope MRESULT   SOMLINK Foot_wpDrop(OneFoot *somSelf,
  14.         HWND hwndCnr,
  15.         PDRAGINFO pdrgInfo,
  16.         PDRAGITEM pdrgItem)
  17. {
  18.  
  19.     OneFootData *somThis = OneFootGetData(somSelf);
  20.     OneFootMethodDebug("OneFoot","Foot_wpDrop");
  21.         WinMessageBox(HWND_DESKTOP,
  22.                       HWND_DESKTOP,
  23.                       "OUCH!! Don't drop that on my foot!",
  24.                       "Foot",
  25.                       0,
  26.                       MB_NOICON | MB_OK | MB_MOVEABLE);
  27.  
  28. //    return (parent_wpDrop(somSelf,hwndCnr,pdrgInfo,pdrgItem));
  29.       return 0;
  30. }
  31.  
  32. SOM_Scope HWND   SOMLINK Foot_wpOpen(OneFoot *somSelf,
  33.         HWND hwndCnr,
  34.         ULONG ulView,
  35.         ULONG param)
  36. {
  37.     OneFootData *somThis = OneFootGetData(somSelf);
  38.     OneFootMethodDebug("OneFoot","Foot_wpOpen");
  39.         if (ulView == OPEN_SETTINGS)
  40.       return (parent_wpOpen(somSelf,hwndCnr,ulView,param));
  41.     else
  42.     { 
  43.           WinMessageBox(HWND_DESKTOP,
  44.                         HWND_DESKTOP,
  45.                         "How do you expect to open a foot?",
  46.                         "Foot",
  47.                         0,
  48.                         MB_NOICON | MB_OK | MB_MOVEABLE);
  49.       return 0;
  50.     }
  51. }
  52.