5df3e469e2d9bcd9ef06c59aa3f73a1cf8ed5a2d
[openjpeg.git] / applications / JavaOpenJPEG / java-jni / include / win32 / jawt_md.h
1 /*\r
2  * @(#)jawt_md.h        1.7 03/12/19\r
3  *\r
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.\r
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.\r
6  */\r
7 \r
8 #ifndef _JAVASOFT_JAWT_MD_H_\r
9 #define _JAVASOFT_JAWT_MD_H_\r
10 \r
11 #include <windows.h>\r
12 #include "jawt.h"\r
13 \r
14 #ifdef __cplusplus\r
15 extern "C" {\r
16 #endif\r
17 \r
18 /*\r
19  * Win32-specific declarations for AWT native interface.\r
20  * See notes in jawt.h for an example of use.\r
21  */\r
22 typedef struct jawt_Win32DrawingSurfaceInfo {\r
23     /* Native window, DDB, or DIB handle */\r
24     union {\r
25         HWND hwnd;\r
26         HBITMAP hbitmap;\r
27         void* pbits;\r
28     };\r
29     /*\r
30      * This HDC should always be used instead of the HDC returned from\r
31      * BeginPaint() or any calls to GetDC().\r
32      */\r
33     HDC hdc;\r
34     HPALETTE hpalette;\r
35 } JAWT_Win32DrawingSurfaceInfo;\r
36 \r
37 #ifdef __cplusplus\r
38 }\r
39 #endif\r
40 \r
41 #endif /* !_JAVASOFT_JAWT_MD_H_ */\r