From bb3d3743b4800d006457c767a00436b9308da75d Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 22 Feb 2011 07:40:23 +0100 Subject: NativeWindow ProxySurface Abstraction and lock/unlock Surface cleanup - ProxySurface -> abstract javax.media.nativewindow.ProxySurface, implemented by jogamp.nativewindow.WrappedSurface, just wrapping surface handle jogamp.nativewindow.windows.GDISurface, using HWND and get/release HDC on lock/unlock - Unifying NativeSurface's lockSurface/unlockSurface implementations - NEWT's WindowImpl - NativeWindow's ProxySurface, WrappedWindow, GDIWindow and JAWTWindow - wingdi/GDI: Add 'WindowFromDC' and 'GetClientRect' to GDI --- make/stub_includes/win32/windows.h | 3 +++ make/stub_includes/win32/wingdi.h | 2 ++ 2 files changed, 5 insertions(+) (limited to 'make/stub_includes') diff --git a/make/stub_includes/win32/windows.h b/make/stub_includes/win32/windows.h index ddee94c06..c30f99ebd 100644 --- a/make/stub_includes/win32/windows.h +++ b/make/stub_includes/win32/windows.h @@ -52,3 +52,6 @@ typedef struct tagRECT { LONG bottom; } RECT; +typedef RECT* PRECT; +typedef RECT* LPRECT; + diff --git a/make/stub_includes/win32/wingdi.h b/make/stub_includes/win32/wingdi.h index b169621f5..23ac428ca 100644 --- a/make/stub_includes/win32/wingdi.h +++ b/make/stub_includes/win32/wingdi.h @@ -191,6 +191,8 @@ WINGDIAPI HGDIOBJ WINAPI SelectObject(HDC, HGDIOBJ); WINUSERAPI BOOL WINAPI ShowWindow(HWND hWnd, int nCmdShow); WINUSERAPI HDC WINAPI GetDC(HWND); WINUSERAPI int WINAPI ReleaseDC(HWND hWnd, HDC hDC); +WINUSERAPI HWND WINAPI WindowFromDC(HDC hDC); // avail in >= Win2k +WINUSERAPI BOOL WINAPI GetClientRect(HWND hwnd, LPRECT lpRect); WINUSERAPI BOOL WINAPI DestroyWindow(HWND hWnd); WINUSERAPI DWORD WINAPI GetObjectType(HGDIOBJ h); -- cgit v1.2.3