< prev index next >

src/java.desktop/windows/native/libawt/windows/awt_PrintControl.h

Print this page

        

@@ -45,10 +45,11 @@
     static jmethodID setPrintDCID;
     static jmethodID getDevmodeID;
     static jmethodID setDevmodeID;
     static jmethodID getDevnamesID;
     static jmethodID setDevnamesID;
+    static jmethodID getParentWindowID;
     static jmethodID getWin32MediaID;
     static jmethodID setWin32MediaID;
     static jmethodID getWin32MediaTrayID;
     static jmethodID setWin32MediaTrayID;
     static jmethodID getColorID;

@@ -95,10 +96,14 @@
 
     static BOOL getDevmode(HANDLE hPrinter,
                                  LPTSTR pPrinterName,
                                  LPDEVMODE *pDevMode);
 
+    inline static HWND getParentID(JNIEnv *env, jobject self) {
+      return (HWND)env->CallLongMethod(self, getParentWindowID);
+    }
+
     inline static  HDC getPrintDC(JNIEnv *env, jobject self) {
       return (HDC)env->CallLongMethod(self, getPrintDCID);
     }
 
     inline static void setPrintDC(JNIEnv *env, jobject self, HDC printDC) {
< prev index next >