home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / odtlktv4.zip / ODTLKT / TOOLKIT / BETA / SAMPLES / OPENDOC / PARTS / CNTNRPRT / CNTNRPRT.H < prev    next >
C/C++ Source or Header  |  1995-10-16  |  3KB  |  67 lines

  1. /******************************************************************************/
  2. /*                                                                            */
  3. /* COPYRIGHT:                                                                 */
  4. /* ----------                                                                 */
  5. /* Copyright (C) International Business Machines Corp., 1994.                 */
  6. /* Copyright:(C) Apple Computer, Inc., 1994                                   */
  7. /*                                                                            */
  8. /* DISCLAIMER OF WARRANTIES:                                                  */
  9. /* -------------------------                                                  */
  10. /* The following [enclosed] code is sample code created by IBM                */
  11. /* Corporation.  This sample code is not part of any standard IBM product     */
  12. /* and is provided to you solely for the purpose of assisting you in the      */
  13. /* development of your applications.  The code is provided "AS IS",           */
  14. /* without warranty of any kind.  IBM shall not be liable for any damages     */
  15. /* arising out of your use of the sample code, even if they have been         */
  16. /* advised of the possibility of such damages.                                */
  17. /*                                                                            */
  18. /******************************************************************************/
  19. /*
  20.    File:    CntnrPrt.h
  21.  
  22.    Contains:   definition for class ContainerPart
  23.  
  24.    Written by: Joshua Susser
  25.  
  26.    Change History (most recent first):
  27.  
  28. */
  29.  
  30. #ifndef _CNTNRPRT_
  31. #define _CNTNRPRT_
  32.  
  33. extern "C" {
  34.  
  35.     class ODMenuBar;
  36.     void EXPENTRY AddMenuResourceLast( Environment *ev, HMODULE hmodDLL, long resid, ODMenuBar *menubar, ODMenuID menuid);
  37.  
  38.     // [127685] map - constants and types for multithreaded drawing
  39.     #define LEN_STACK  16384
  40.     #define OBJECTCLASSNAME      "CNTNRPRT_OBJECTWINDOW"
  41.  
  42.     typedef struct _DrawContentData
  43.     {
  44.     public:
  45.         ODFacet   *facet;
  46.         ODShape   *invalidShape;
  47.         RECTL      frameRect;
  48. //      HPS        hpsDraw;
  49. //      HRGN       hrgnClip;
  50. //      HRGN       hrgnAggClip;
  51.     } DrawContentData;
  52.  
  53.     #define WM_USER_ACK    WM_USER+1
  54.     #define WM_USER_CLOSE  WM_USER+2
  55.     #define WM_USER_DRAW   WM_USER+3
  56.  
  57.     void _Optlink DrawThread(void *pArg);
  58.     MRESULT EXPENTRY ObjectWinProc( HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2 );
  59.     // [127685] end
  60. // Z-Order defines  defect = 128689
  61.     static const ODPropertyName  kZOrderProp  = "Z:Order:P";
  62.     const ODType   kZOrder                    = "IBM:Kind:ZOrder";
  63.  
  64. }
  65.  
  66. #endif // _CNTNRPRT_
  67.