Adding custom controls in a C/C++ DLL
I'm using a C++ dll via JNI in a AWT application to create a custom control of C DLL with the help of the Win32 API (in Windows XP 32Bit). I.e. in the C/C++ dll I get a window handle and the appropriate control is created with "CreateWindow". Now the Java application calls this function to append the control to the main frame.
This procedure is working for various kinds of programs like C/C++, C#, Visual Basic and even SWT Java programs! However, when using AWT the whole application freezes without any error message when I try to move the main frame, try to resize or try to interact with the icon.
I also tried to disable some things in the C/C++ dll and it works so far when I don't call the CreateWindow function in order to create the control. But even when I let the callback procedure for this control empty the freezes continue. So I believe the AWT Windows implementation doesn't bear any "external" controls attached to their AWT windows. Is this correct or does anyone know any tricks?