home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / jreheadf.zip / jawt_md.h next >
C/C++ Source or Header  |  2002-08-31  |  2KB  |  78 lines

  1. /*
  2.  * @(#)src/contract/awt/pfm/jawt_md.h, awt, an131, 20020810 1.4.1.1
  3.  * ===========================================================================
  4.  * Licensed Materials - Property of IBM
  5.  * "Restricted Materials of IBM"
  6.  *
  7.  * IBM Java(tm)2 SDK, Standard Edition, v 1.3.1
  8.  * (C) Copyright IBM Corp. 1998, 2001. All Rights Reserved
  9.  * US Government Users Restricted Rights - Use, duplication or disclosure
  10.  * restricted by GSA ADP Schedule Contract with IBM Corp.
  11.  * ===========================================================================
  12.  */
  13.  
  14. /* 
  15.  *
  16.  * ===========================================================================
  17.  *
  18.  *
  19.  * Copyright 1999, 2000 Sun Microsystems, Inc. All Rights Reserved.
  20.  *
  21.  * ===========================================================================
  22.  * Change activity:
  23.  *
  24.  * Reason  Date   Origin    Description
  25.  * ------  ----   ------    -------------------------------------------------- 
  26.  * 31653   240401 mchapman  Add IBM module header 
  27.  *
  28.  * ===========================================================================
  29.  * Module Information:
  30.  * 
  31.  * DESCRIPTION: IBM.WRITEME
  32.  * ===========================================================================
  33.  */
  34.  
  35. /*
  36.  * @(#)jawt_md.h    1.2 99/05/27
  37.  *
  38.  * Copyright 1999 by Sun Microsystems, Inc.,
  39.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  40.  * All rights reserved.
  41.  *
  42.  */
  43.  
  44. #ifndef _JAVASOFT_JAWT_MD_H_
  45. #define _JAVASOFT_JAWT_MD_H_
  46.  
  47. #include <windows.h>
  48. #include "jawt.h"
  49.  
  50. #ifdef __cplusplus
  51. extern "C" {
  52. #endif
  53.  
  54. /*
  55.  * Win32-specific declarations for AWT native interface.
  56.  * See notes in jawt.h for an example of use.
  57.  */
  58. typedef struct jawt_Win32DrawingSurfaceInfo {
  59.     /* Native window, DDB, or DIB handle */
  60.     union {
  61.         HWND hwnd;
  62.         HBITMAP hbitmap;
  63.         void* pbits;
  64.     };
  65.     /*
  66.      * This HDC should always be used instead of the HDC returned from
  67.      * BeginPaint() or any calls to GetDC().
  68.      */
  69.     HDC hdc;
  70.     HPALETTE hpalette;
  71. } JAWT_Win32DrawingSurfaceInfo;
  72.  
  73. #ifdef __cplusplus
  74. }
  75. #endif
  76.  
  77. #endif /* !_JAVASOFT_JAWT_MD_H_ */
  78.