AWT Event post problem.
I port the AWT based on micowindows(CDC basis profile).
But the demo application PBPDemoFrame.java does not run correcetlly.I find the application can not receive the paint event.
So I modified the AWT source code Window.java.I replace the Window.postPaintEvent() SunToolkit with Toolkit to post event.Surprisely, the application can run okay!!!
Then I find the same problem with Window.postKeyEvent().The application can not receive key event with the use of SunToolkit.I must modified the SunToolkit to Toolkit to post event and the application must call requestFocusInWindow() function,then the application can receive the key event.
Is there anyone know about the reason????Is there any problem with the window.java source code??