Content deleted Content added
m →Create the C++ header file: fix typo |
m Robot-assisted disambiguation link repair (you can help!): Window (disambiguation) |
||
Line 156:
== Native painting ==
As you can see, you can paint as if it is a native application. In [[Microsoft Windows|Windows]], the JVM will pass a HWND and other window information to your native application so that your application will "know" where to draw. In this example, it uses GDI to draw a Rectangle. The window information your native side need will be in a <code>JAWT_Win32DrawingSurfaceInfo</code> structure (depending on [[Operating System]]) which can be retrieved with this line:
dsi_win = (JAWT_Win32DrawingSurfaceInfo*)dsi->platformInfo;
|