home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / pentlk11.zip / OEM.CSC < prev    next >
Text File  |  1994-01-13  |  3KB  |  73 lines

  1. /******************************************************************************
  2. *                                                                             *
  3. *  File Name   : OEM.CSC                                                      *
  4. *                                                                             *
  5. *  Description : Sample sublcass                                              *
  6. *                                                                             *
  7. *  Function:  This is a sample of a subclass of PenLocatorPen                 *
  8. *                                                                             *
  9. *  Copyright (C) 1993 IBM Corporation                                         *
  10. *                                                                             *
  11. *      DISCLAIMER OF WARRANTIES.  The following [enclosed] code is            *
  12. *      sample code created by IBM Corporation. This sample code is not        *
  13. *      part of any standard or IBM product and is provided to you solely      *
  14. *      for  the purpose of assisting you in the development of your           *
  15. *      applications.  The code is provided "AS IS", without                   *
  16. *      warranty of any kind.  IBM shall not be liable for any damages         *
  17. *      arising out of your use of the sample code, even if they have been     *
  18. *      advised of the possibility of such damages.                            *
  19. *                                                                             *
  20. *******************************************************************************/
  21. #include <wplocpen.sc>
  22.  
  23. class: oem,
  24.        local,
  25.        classprefix = oemM_,
  26.        major version = 1,
  27.        minor version = 2;
  28.  
  29. parent: PenLocatorPen;
  30.  
  31. release order: AddUserTypePage;
  32.  
  33. passthru: C.h;
  34.  
  35.   #define INCL_DOS
  36.   #define INCL_DOSERRORS
  37.   #define INCL_PM
  38.   #define INCL_WINWORKPLACE
  39.   #include <os2.h>
  40.   #include <io.h>
  41.   #include <stdio.h>
  42.   #include <string.h>
  43.  
  44.   #define ID_OBJECTICON  200
  45.   #define OEM_DIALOG     201
  46.  
  47.   MRESULT EXPENTRY OemDialogProc(HWND hwndDlg, ULONG msg, MPARAM mp1, MPARAM mp2);
  48.   VOID EXPENTRY OemSetup( HWND, PSZ, PSZ, PSZ, HWND, PSZ );
  49.  
  50. endpassthru;
  51.  
  52. methods:
  53. --
  54. --     new instance methods
  55.  
  56. ULONG  AddUserTypePage ( HWND hwndOem );
  57.  
  58. --
  59. --     overriden instance methods
  60.  
  61. override  wpAddSettingsPages;
  62.  
  63. --
  64. --  new class methods
  65. --
  66. --  none
  67.  
  68. --
  69. --     overriden class methods
  70.  
  71. override  wpclsQueryTitle,    class;
  72. override  wpclsQueryIconData, class;
  73.